Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001299/0.001299, allocations: 121 kB / 18.5 MB, free: 4.562 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001458/0.001458, allocations: 213.5 kB / 21.45 MB, free: 1.617 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.478/1.478, allocations: 230.6 MB / 254.8 MB, free: 15.1 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.1866/0.1866, allocations: 38.5 MB / 349.4 MB, free: 2.684 MB / 270.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001969/0.001969, allocations: 75.89 kB / 487.8 MB, free: 22.11 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.1149, allocations: 62.42 MB / 0.5374 GB, free: 7.578 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.007299/0.1222, allocations: 5.318 MB / 0.5425 GB, free: 2.234 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002674/0.1249, allocations: 1.62 MB / 0.5441 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002772/0.1252, allocations: 27.75 kB / 0.5442 GB, free: 0.582 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004318/0.1256, allocations: 123 kB / 0.5443 GB, free: 472 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008097/0.1264, allocations: 326.1 kB / 0.5446 GB, free: 144 kB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004285/0.1268, allocations: 151.8 kB / 0.5447 GB, free: 15.99 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009334/0.1278, allocations: 0.7003 MB / 0.5454 GB, free: 15.29 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005231/0.1283, allocations: 375.7 kB / 0.5458 GB, free: 14.91 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004515/0.1287, allocations: 306.9 kB / 0.5461 GB, free: 14.61 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004586/0.1292, allocations: 290.8 kB / 0.5463 GB, free: 14.33 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.826e-05/0.1293, allocations: 55.94 kB / 0.5464 GB, free: 14.27 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.118e-05/0.1294, allocations: 48 kB / 0.5464 GB, free: 14.23 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001668/0.1295, allocations: 155.5 kB / 0.5466 GB, free: 14.07 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002655/0.1298, allocations: 262.8 kB / 0.5468 GB, free: 13.82 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000729/0.1305, allocations: 0.5953 MB / 0.5474 GB, free: 13.22 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.113e-06/0.1305, allocations: 4 kB / 0.5474 GB, free: 13.21 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1305, allocations: 0 / 0.5474 GB, free: 13.21 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.005e-06/0.1305, allocations: 0 / 0.5474 GB, free: 13.21 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.001485/0.132, allocations: 0.7927 MB / 0.5482 GB, free: 12.37 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.258e-05/0.1321, allocations: 8.031 kB / 0.5482 GB, free: 12.36 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.685e-05/0.1321, allocations: 13.19 kB / 0.5482 GB, free: 12.35 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.887e-05/0.1322, allocations: 82.7 kB / 0.5483 GB, free: 12.26 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001119/0.1323, allocations: 60.56 kB / 0.5484 GB, free: 12.2 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007778/0.1331, allocations: 467.7 kB / 0.5488 GB, free: 11.71 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000105/0.1332, allocations: 62.7 kB / 0.5489 GB, free: 11.64 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.021e-05/0.1333, allocations: 47.98 kB / 0.5489 GB, free: 11.6 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008744/0.1341, allocations: 0.4931 MB / 0.5494 GB, free: 11.06 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.295e-05/0.1342, allocations: 3.938 kB / 0.5494 GB, free: 11.06 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.865e-05/0.1342, allocations: 23.98 kB / 0.5494 GB, free: 11.04 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.288e-05/0.1342, allocations: 8 kB / 0.5494 GB, free: 11.03 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006784/0.1349, allocations: 339.7 kB / 0.5497 GB, free: 10.7 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002581/0.1375, allocations: 1.973 MB / 0.5517 GB, free: 8.605 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004693/0.138, allocations: 215.6 kB / 0.5519 GB, free: 8.367 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002152/0.1382, allocations: 90.66 kB / 0.552 GB, free: 8.27 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.531e-05/0.1382, allocations: 4.312 kB / 0.552 GB, free: 8.266 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.95e-05/0.1382, allocations: 42.56 kB / 0.552 GB, free: 8.215 MB / 414.1 MB Notification: Performance of pre-optimization done (n=20): time 2.164e-06/0.1382, allocations: 0 / 0.552 GB, free: 8.215 MB / 414.1 MB Notification: Performance of matching and sorting (n=22): time 0.001786/0.14, allocations: 0.8538 MB / 0.5528 GB, free: 7.309 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.933e-05/0.1401, allocations: 115 kB / 0.553 GB, free: 7.172 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003696/0.1405, allocations: 333.6 kB / 0.5533 GB, free: 6.84 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.577e-05/0.1405, allocations: 29.7 kB / 0.5533 GB, free: 6.805 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001946/0.1407, allocations: 276.2 kB / 0.5536 GB, free: 6.531 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.703e-05/0.1407, allocations: 75.36 kB / 0.5536 GB, free: 6.457 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001124/0.1409, allocations: 73.66 kB / 0.5537 GB, free: 6.379 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000159/0.141, allocations: 342.8 kB / 0.554 GB, free: 6.035 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000216/0.1412, allocations: 87.73 kB / 0.5541 GB, free: 5.949 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000316/0.1415, allocations: 221 kB / 0.5543 GB, free: 5.672 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001297/0.1428, allocations: 0.5513 MB / 0.5549 GB, free: 5.043 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.1428, allocations: 3.938 kB / 0.5549 GB, free: 5.039 MB / 414.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0009475/0.1438, allocations: 417.1 kB / 0.5553 GB, free: 4.625 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.1438, allocations: 8.062 kB / 0.5553 GB, free: 4.617 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.139e-05/0.1438, allocations: 12 kB / 0.5553 GB, free: 4.605 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003428/0.1442, allocations: 72.78 kB / 0.5554 GB, free: 4.531 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002569/0.1444, allocations: 67.91 kB / 0.5554 GB, free: 4.465 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002195/0.1466, allocations: 1.932 MB / 0.5573 GB, free: 2.395 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002317/0.1469, allocations: 15.98 kB / 0.5573 GB, free: 2.379 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.706e-05/0.1469, allocations: 16 kB / 0.5573 GB, free: 2.363 MB / 414.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.dcm_pm.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002887/0.1472, allocations: 198.3 kB / 0.5575 GB, free: 2.16 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.543e-05/0.1473, allocations: 39.7 kB / 0.5576 GB, free: 2.121 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.999e-05/0.1473, allocations: 43.3 kB / 0.5576 GB, free: 2.078 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/0.1473, allocations: 4 kB / 0.5576 GB, free: 2.074 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.1473, allocations: 0 / 0.5576 GB, free: 2.074 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.1473, allocations: 4 kB / 0.5576 GB, free: 2.07 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001331/0.1487, allocations: 0.7687 MB / 0.5584 GB, free: 1.227 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.1487, allocations: 0 / 0.5584 GB, free: 1.227 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002695/0.1489, allocations: 51.91 kB / 0.5584 GB, free: 1.176 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.996e-05/0.149, allocations: 24.83 kB / 0.5584 GB, free: 1.148 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.883e-05/0.1491, allocations: 4 kB / 0.5584 GB, free: 1.145 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001228/0.1503, allocations: 1.398 MB / 0.5598 GB, free: 15.61 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.1503, allocations: 0 / 0.5598 GB, free: 15.61 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008667/0.1512, allocations: 0.4971 MB / 0.5603 GB, free: 15.08 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001403/0.1513, allocations: 120.9 kB / 0.5604 GB, free: 14.95 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.982e-05/0.1513, allocations: 11.94 kB / 0.5604 GB, free: 14.93 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000214/0.1515, allocations: 11.98 kB / 0.5604 GB, free: 14.92 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.734e-05/0.1516, allocations: 19.97 kB / 0.5604 GB, free: 14.9 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.408e-05/0.1516, allocations: 8 kB / 0.5605 GB, free: 14.89 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002581/0.1519, allocations: 231.1 kB / 0.5607 GB, free: 14.67 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1519, allocations: 0 / 0.5607 GB, free: 14.67 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005319/0.1524, allocations: 92 kB / 0.5608 GB, free: 14.58 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (dcm_pm.motor.i,loadInertia.w,frictTorq.phi) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001168/0.1536, allocations: 1.046 MB / 0.5618 GB, free: 13.5 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0008279/0.1544, allocations: 365.6 kB / 0.5621 GB, free: 13.13 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.1544, allocations: 0 / 0.5621 GB, free: 13.13 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003862/0.1548, allocations: 217.7 kB / 0.5623 GB, free: 12.91 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000746/0.1556, allocations: 114.9 kB / 0.5625 GB, free: 12.8 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005607/0.1612, allocations: 3.693 MB / 0.5661 GB, free: 8.887 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005362/0.1617, allocations: 0.8425 MB / 0.5669 GB, free: 8.016 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002101/0.1619, allocations: 51.27 kB / 0.5669 GB, free: 7.965 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001968/0.1621, allocations: 139.4 kB / 0.5671 GB, free: 7.828 MB / 430.1 MB Notification: Performance of SimCode: time 7.31e-07/0.1621, allocations: 0 / 0.5671 GB, free: 7.828 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03447/0.1966, allocations: 8.617 MB / 0.5755 GB, free: 15.42 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.83/13.02, allocations: 11.94 kB / 0.5755 GB, free: 15.41 MB / 446.1 MB " [Timeout remaining time 647] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm_fmu --startTime=0 --stopTime=3 --stepSize=0.0012 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.166657075984403]