Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.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.00178/0.00178, allocations: 114.5 kB / 18.45 MB, free: 4.566 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.002062/0.002062, allocations: 213.6 kB / 21.42 MB, free: 1.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.57/1.57, allocations: 207.6 MB / 231.8 MB, free: 4.043 MB / 174.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 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.001731/0.001731, allocations: 47.94 kB / 342.3 MB, free: 9.988 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1081, allocations: 49.13 MB / 391.4 MB, free: 8.691 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.009571/0.1176, allocations: 7.128 MB / 398.5 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004942/0.1226, allocations: 2.404 MB / 401 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007649/0.1233, allocations: 19.94 kB / 401 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001591/0.1249, allocations: 0.5204 MB / 401.5 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001119/0.1261, allocations: 409 kB / 401.9 MB, free: 14.17 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004526/0.1265, allocations: 207.7 kB / 402.1 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001527/0.128, allocations: 1.199 MB / 403.3 MB, free: 12.76 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006214/0.1287, allocations: 340 kB / 403.6 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007378/0.1294, allocations: 482.1 kB / 404.1 MB, free: 11.93 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006251/0.13, allocations: 0.4899 MB / 404.6 MB, free: 11.44 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001439/0.1302, allocations: 112 kB / 404.7 MB, free: 11.33 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003083/0.1305, allocations: 152 kB / 404.8 MB, free: 11.18 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001968/0.1307, allocations: 227.2 kB / 405.1 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005412/0.1312, allocations: 0.5404 MB / 405.6 MB, free: 10.42 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001706/0.1329, allocations: 1.436 MB / 407 MB, free: 8.977 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.698e-06/0.1329, allocations: 0 / 407 MB, free: 8.977 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1329, allocations: 0 / 407 MB, free: 8.977 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.145e-05/0.1329, allocations: 4 kB / 407 MB, free: 8.973 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.002268/0.1352, allocations: 1.281 MB / 408.3 MB, free: 7.641 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.811e-05/0.1353, allocations: 16.03 kB / 408.3 MB, free: 7.625 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001619/0.1354, allocations: 127 kB / 408.5 MB, free: 7.492 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005434/0.136, allocations: 148.2 kB / 408.6 MB, free: 7.348 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00123/0.1372, allocations: 0.6539 MB / 409.3 MB, free: 6.648 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.478e-05/0.1373, allocations: 62.38 kB / 409.3 MB, free: 6.59 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001378/0.1374, allocations: 80.12 kB / 409.4 MB, free: 6.512 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001504/0.1389, allocations: 0.7793 MB / 410.2 MB, free: 5.699 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.36e-05/0.1389, allocations: 3.953 kB / 410.2 MB, free: 5.695 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.845e-05/0.139, allocations: 32 kB / 410.2 MB, free: 5.664 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.645e-05/0.139, allocations: 20 kB / 410.2 MB, free: 5.645 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00116/0.1402, allocations: 0.5231 MB / 410.8 MB, free: 5.125 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00468/0.1449, allocations: 3.369 MB / 414.1 MB, free: 1.547 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005621/0.1454, allocations: 226.5 kB / 414.4 MB, free: 1.316 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002557/0.1457, allocations: 108.8 kB / 414.5 MB, free: 1.207 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.383e-05/0.1457, allocations: 0 / 414.5 MB, free: 1.207 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.54e-05/0.1458, allocations: 38.56 kB / 414.5 MB, free: 1.16 MB / 334.1 MB Notification: Performance of pre-optimization done (n=25): time 1.272e-06/0.1458, allocations: 0 / 414.5 MB, free: 1.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=28): time 0.002343/0.1481, allocations: 1.066 MB / 415.6 MB, free: 24 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.794e-05/0.1482, allocations: 85.11 kB / 415.6 MB, free: 15.92 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001065/0.1493, allocations: 0.7426 MB / 416.4 MB, free: 15.17 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.969e-05/0.1493, allocations: 29.7 kB / 416.4 MB, free: 15.14 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004173/0.1497, allocations: 0.4996 MB / 416.9 MB, free: 14.63 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001026/0.1498, allocations: 111.1 kB / 417 MB, free: 14.52 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001647/0.15, allocations: 118.2 kB / 417.1 MB, free: 14.4 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002164/0.1502, allocations: 374.8 kB / 417.5 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002984/0.1505, allocations: 129.2 kB / 417.6 MB, free: 13.9 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006244/0.1511, allocations: 422.1 kB / 418 MB, free: 13.35 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001031/0.1522, allocations: 0.5637 MB / 418.6 MB, free: 12.65 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.402e-06/0.1522, allocations: 4 kB / 418.6 MB, free: 12.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001407/0.1536, allocations: 0.6154 MB / 419.2 MB, free: 12.02 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.902e-05/0.1536, allocations: 15.91 kB / 419.2 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.822e-05/0.1536, allocations: 8 kB / 419.2 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002165/0.1538, allocations: 36.84 kB / 419.3 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007377/0.1546, allocations: 135.8 kB / 419.4 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001814/0.1564, allocations: 1.398 MB / 420.8 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008333/0.1572, allocations: 32.14 kB / 420.8 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.177e-05/0.1573, allocations: 31.98 kB / 420.9 MB, free: 10.22 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * Single equations (assignments): 72 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005638/0.1578, allocations: 237.5 kB / 421.1 MB, free: 9.98 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001766/0.158, allocations: 75.53 kB / 421.2 MB, free: 9.906 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001026/0.1591, allocations: 321.4 kB / 421.5 MB, free: 9.582 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.398e-06/0.1591, allocations: 4 kB / 421.5 MB, free: 9.578 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.1591, allocations: 0 / 421.5 MB, free: 9.578 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/0.1591, allocations: 3.938 kB / 421.5 MB, free: 9.574 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002777/0.1618, allocations: 1.102 MB / 422.6 MB, free: 8.387 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.347e-06/0.1619, allocations: 4 kB / 422.6 MB, free: 8.383 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004343/0.1623, allocations: 55.91 kB / 422.7 MB, free: 8.328 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001525/0.1624, allocations: 25.06 kB / 422.7 MB, free: 8.301 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.29e-05/0.1625, allocations: 12 kB / 422.7 MB, free: 8.289 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001725/0.1642, allocations: 1.371 MB / 424.1 MB, free: 6.773 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.1642, allocations: 0 / 424.1 MB, free: 6.773 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001572/0.1658, allocations: 0.5648 MB / 424.6 MB, free: 6.168 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004168/0.1662, allocations: 176.6 kB / 424.8 MB, free: 5.977 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001227/0.1663, allocations: 11.94 kB / 424.8 MB, free: 5.965 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005353/0.1669, allocations: 19.98 kB / 424.8 MB, free: 5.945 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001121/0.167, allocations: 27.91 kB / 424.9 MB, free: 5.918 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.794e-05/0.167, allocations: 8 kB / 424.9 MB, free: 5.91 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001191/0.1682, allocations: 0.5029 MB / 425.4 MB, free: 5.41 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1682, allocations: 0 / 425.4 MB, free: 5.41 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001245/0.1694, allocations: 160 kB / 425.5 MB, free: 5.254 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 26 * 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): 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.002179/0.1716, allocations: 1.121 MB / 426.7 MB, free: 4.078 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00133/0.1729, allocations: 452.3 kB / 427.1 MB, free: 3.625 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.1729, allocations: 0 / 427.1 MB, free: 3.625 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004266/0.1734, allocations: 230.5 kB / 427.3 MB, free: 3.387 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001087/0.1745, allocations: 184 kB / 427.5 MB, free: 3.211 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01028/0.1847, allocations: 6.278 MB / 433.8 MB, free: 12.53 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007914/0.1855, allocations: 0.9409 MB / 434.7 MB, free: 11.56 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003989/0.1859, allocations: 90.02 kB / 434.8 MB, free: 11.47 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004308/0.1864, allocations: 307.3 kB / 435.1 MB, free: 11.17 MB / 366.1 MB Notification: Performance of SimCode: time 2.084e-06/0.1864, allocations: 0 / 435.1 MB, free: 11.17 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05071/0.2371, allocations: 15.55 MB / 450.7 MB, free: 11.54 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.89/11.13, allocations: 7.797 kB / 450.7 MB, free: 11.54 MB / 382.1 MB " [Timeout remaining time 649] (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Start/DCPM_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable loadInertia.w in file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.csv. Warning: Get data of variable loadInertia.w from file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.479087482992327]