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.000884/0.000884, allocations: 83.62 kB / 21.43 MB, free: 3.133 MB / 18.57 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.0037/0.0037, allocations: 161.6 kB / 24.69 MB, free: 9.414 MB / 18.57 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 0.8732/0.8732, allocations: 158.6 MB / 186.5 MB, free: 3.055 MB / 170.7 MB " [Timeout remaining time 179] 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: Performance of FrontEnd - loaded program: time 1.532e-06/1.532e-06, allocations: 0 / 298.4 MB, free: 3.508 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.257e-05/1.411e-05, allocations: 2.281 kB / 298.4 MB, free: 3.504 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.1324/0.1324, allocations: 6.295 MB / 304.7 MB, free: 12.51 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002192/0.1346, allocations: 2.221 MB / 307 MB, free: 11.32 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002542/0.1349, allocations: 24.44 kB / 307 MB, free: 11.32 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008019/0.1357, allocations: 484.8 kB / 307.5 MB, free: 11.09 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000433/0.1361, allocations: 430.9 kB / 307.9 MB, free: 10.78 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002156/0.1363, allocations: 200.8 kB / 308.1 MB, free: 10.65 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006791/0.137, allocations: 1.256 MB / 309.3 MB, free: 9.945 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003278/0.1373, allocations: 321.4 kB / 309.7 MB, free: 9.758 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004858/0.1378, allocations: 0.7004 MB / 310.4 MB, free: 9.426 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003168/0.1381, allocations: 358.6 kB / 310.7 MB, free: 9.297 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 9.506e-05/0.1382, allocations: 114.4 kB / 310.8 MB, free: 9.297 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001745/0.1384, allocations: 153.3 kB / 311 MB, free: 9.285 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 9.06e-05/0.1385, allocations: 234.1 kB / 311.2 MB, free: 9.109 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002321/0.1387, allocations: 377 kB / 311.6 MB, free: 8.938 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001015/0.1397, allocations: 1.429 MB / 313 MB, free: 8.418 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.778e-06/0.1398, allocations: 0 / 313 MB, free: 8.418 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1398, allocations: 1.094 kB / 313 MB, free: 8.418 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.123e-05/0.1398, allocations: 4 kB / 313 MB, free: 8.414 MB / 282.7 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.001169/0.1409, allocations: 1.198 MB / 314.2 MB, free: 7.602 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.947e-05/0.141, allocations: 13.58 kB / 314.2 MB, free: 7.598 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.258e-05/0.1411, allocations: 128.6 kB / 314.3 MB, free: 7.508 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002499/0.1413, allocations: 147.5 kB / 314.5 MB, free: 7.449 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000674/0.142, allocations: 0.5879 MB / 315.1 MB, free: 7.039 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.355e-05/0.142, allocations: 58.84 kB / 315.1 MB, free: 7.012 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.411e-05/0.1421, allocations: 76.53 kB / 315.2 MB, free: 6.988 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008032/0.1429, allocations: 0.8279 MB / 316 MB, free: 6.551 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.216e-05/0.1429, allocations: 12.94 kB / 316 MB, free: 6.543 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.792e-05/0.143, allocations: 36.06 kB / 316.1 MB, free: 6.516 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.288e-05/0.143, allocations: 19.91 kB / 316.1 MB, free: 6.516 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006383/0.1436, allocations: 0.5194 MB / 316.6 MB, free: 6.324 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00228/0.1459, allocations: 3.029 MB / 319.6 MB, free: 4.078 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003468/0.1462, allocations: 218.9 kB / 319.9 MB, free: 3.984 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001383/0.1464, allocations: 107.8 kB / 320 MB, free: 3.941 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.283e-05/0.1464, allocations: 11.91 kB / 320 MB, free: 3.934 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.641e-05/0.1464, allocations: 41 kB / 320 MB, free: 3.887 MB / 282.7 MB Notification: Performance of pre-optimization done (n=25): time 1.663e-06/0.1464, allocations: 1.062 kB / 320 MB, free: 3.887 MB / 282.7 MB Notification: Performance of matching and sorting (n=28): time 0.001221/0.1476, allocations: 0.9097 MB / 320.9 MB, free: 3.355 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.703e-05/0.1477, allocations: 80.52 kB / 321 MB, free: 3.262 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006954/0.1484, allocations: 0.7533 MB / 321.8 MB, free: 2.914 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.389e-05/0.1484, allocations: 30.98 kB / 321.8 MB, free: 2.879 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001829/0.1486, allocations: 0.4943 MB / 322.3 MB, free: 2.48 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.964e-05/0.1486, allocations: 118.2 kB / 322.4 MB, free: 2.387 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.61e-05/0.1487, allocations: 107.6 kB / 322.5 MB, free: 2.316 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.606e-05/0.1488, allocations: 382.2 kB / 322.9 MB, free: 1.949 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001625/0.1489, allocations: 127.3 kB / 323 MB, free: 1.887 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002523/0.1492, allocations: 445.6 kB / 323.4 MB, free: 1.41 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004505/0.1496, allocations: 0.5748 MB / 324 MB, free: 0.8711 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.659e-06/0.1496, allocations: 3.25 kB / 324 MB, free: 0.8711 MB / 282.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0006925/0.1503, allocations: 0.6096 MB / 324.6 MB, free: 0.5469 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.11e-05/0.1503, allocations: 9.75 kB / 324.6 MB, free: 0.5469 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.585e-05/0.1504, allocations: 10.38 kB / 324.6 MB, free: 0.5469 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000135/0.1505, allocations: 39.34 kB / 324.7 MB, free: 0.5273 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002584/0.1508, allocations: 137.8 kB / 324.8 MB, free: 0.4961 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006587/0.1514, allocations: 1.277 MB / 326.1 MB, free: 15.19 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002343/0.1516, allocations: 46.25 kB / 326.1 MB, free: 15.16 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.246e-05/0.1517, allocations: 29.44 kB / 326.2 MB, free: 15.16 MB / 298.7 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.0002888/0.152, allocations: 232.2 kB / 326.4 MB, free: 14.97 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.854e-05/0.152, allocations: 73.91 kB / 326.5 MB, free: 14.93 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004087/0.1524, allocations: 317.9 kB / 326.8 MB, free: 14.74 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.1524, allocations: 2.156 kB / 326.8 MB, free: 14.74 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-06/0.1524, allocations: 9.031 kB / 326.8 MB, free: 14.73 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.788e-06/0.1525, allocations: 0 / 326.8 MB, free: 14.73 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001066/0.1535, allocations: 0.9989 MB / 327.8 MB, free: 13.96 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.1535, allocations: 2.469 kB / 327.8 MB, free: 13.96 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001524/0.1537, allocations: 61.91 kB / 327.8 MB, free: 13.95 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.753e-05/0.1537, allocations: 23.88 kB / 327.9 MB, free: 13.93 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.542e-05/0.1537, allocations: 12.06 kB / 327.9 MB, free: 13.93 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008225/0.1546, allocations: 1.263 MB / 329.1 MB, free: 12.63 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.1546, allocations: 4.172 kB / 329.1 MB, free: 12.63 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006438/0.1552, allocations: 0.5662 MB / 329.7 MB, free: 12.23 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001436/0.1554, allocations: 96.92 kB / 329.8 MB, free: 12.15 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.523e-05/0.1554, allocations: 9.031 kB / 329.8 MB, free: 12.15 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001627/0.1556, allocations: 21.89 kB / 329.8 MB, free: 12.14 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.4e-05/0.1556, allocations: 28.52 kB / 329.9 MB, free: 12.12 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.326e-05/0.1557, allocations: 15.03 kB / 329.9 MB, free: 12.11 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0005139/0.1562, allocations: 0.5006 MB / 330.4 MB, free: 11.83 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.1562, allocations: 0 / 330.4 MB, free: 11.83 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004419/0.1566, allocations: 165.1 kB / 330.5 MB, free: 11.81 MB / 298.7 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.000816/0.1574, allocations: 1.106 MB / 331.6 MB, free: 10.88 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005761/0.158, allocations: 448.2 kB / 332.1 MB, free: 10.62 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.158, allocations: 3.406 kB / 332.1 MB, free: 10.62 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002021/0.1582, allocations: 227.6 kB / 332.3 MB, free: 10.45 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005869/0.1588, allocations: 192.6 kB / 332.5 MB, free: 10.36 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006972/0.1658, allocations: 6.213 MB / 338.7 MB, free: 5.031 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002359/0.166, allocations: 344.7 kB / 339 MB, free: 4.668 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002095/0.1662, allocations: 90.02 kB / 339.1 MB, free: 4.578 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002395/0.1665, allocations: 304.4 kB / 339.4 MB, free: 4.277 MB / 298.7 MB Notification: Performance of SimCode: time 9.42e-07/0.1665, allocations: 0 / 339.4 MB, free: 4.277 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03295/0.1994, allocations: 17 MB / 356.4 MB, free: 3.211 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.523/7.722, allocations: 8 kB / 356.4 MB, free: 3.203 MB / 314.7 MB " [Timeout remaining time 652] (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/jenkins/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/jenkins/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] "" Variables in the reference:time,dcpm.la.i,loadInertia.phi,loadInertia.w Variables in the result:time,dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.phi [Calling sys.exit(0), Time elapsed: 9.781075252220035]