Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.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.0008488/0.0008488, allocations: 87.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.00354/0.00354, allocations: 162 kB / 24.69 MB, free: 8.891 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.8425/0.8425, allocations: 158.6 MB / 186.5 MB, free: 3.039 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_QuasiStationary,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.072e-06/1.072e-06, allocations: 0 / 298.5 MB, free: 3.504 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.384e-05/1.491e-05, allocations: 2.281 kB / 298.5 MB, free: 3.5 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.1205/0.1205, allocations: 10.16 MB / 308.6 MB, free: 10.23 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.004031/0.1245, allocations: 3.056 MB / 311.7 MB, free: 8.125 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006712/0.1252, allocations: 43.12 kB / 311.7 MB, free: 8.113 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001162/0.1263, allocations: 0.6234 MB / 312.3 MB, free: 7.801 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009616/0.1273, allocations: 0.7576 MB / 313.1 MB, free: 7.238 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005423/0.1278, allocations: 403.8 kB / 313.5 MB, free: 6.98 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.00176/0.1296, allocations: 2.34 MB / 315.8 MB, free: 5.672 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006638/0.1303, allocations: 0.6095 MB / 316.4 MB, free: 5.293 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001123/0.1314, allocations: 1.304 MB / 317.7 MB, free: 4.676 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005993/0.132, allocations: 0.6534 MB / 318.4 MB, free: 4.434 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001806/0.1322, allocations: 217.8 kB / 318.6 MB, free: 4.434 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002951/0.1325, allocations: 260.7 kB / 318.9 MB, free: 4.418 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001851/0.1326, allocations: 439.7 kB / 319.3 MB, free: 4.09 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004712/0.1331, allocations: 0.6914 MB / 320 MB, free: 3.766 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001584/0.1347, allocations: 2.684 MB / 322.7 MB, free: 2.344 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.1347, allocations: 1.094 kB / 322.7 MB, free: 2.344 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1347, allocations: 4 kB / 322.7 MB, free: 2.34 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.774e-05/0.1347, allocations: 0 / 322.7 MB, free: 2.34 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.001895/0.1366, allocations: 2.021 MB / 324.7 MB, free: 0.832 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.636e-05/0.1367, allocations: 13.08 kB / 324.7 MB, free: 0.8281 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001489/0.1368, allocations: 218.2 kB / 324.9 MB, free: 0.6523 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004146/0.1372, allocations: 273.6 kB / 325.2 MB, free: 0.5195 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001076/0.1383, allocations: 0.968 MB / 326.1 MB, free: 15.77 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.406e-05/0.1384, allocations: 116.2 kB / 326.3 MB, free: 15.71 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001591/0.1385, allocations: 162 kB / 326.4 MB, free: 15.65 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001832/0.1404, allocations: 1.589 MB / 328 MB, free: 14.57 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.57e-05/0.1404, allocations: 14.8 kB / 328 MB, free: 14.56 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.944e-05/0.1405, allocations: 67.3 kB / 328.1 MB, free: 14.51 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.393e-05/0.1405, allocations: 42.47 kB / 328.1 MB, free: 14.51 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001204/0.1417, allocations: 0.9675 MB / 329.1 MB, free: 14.03 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004511/0.1462, allocations: 5.931 MB / 335 MB, free: 8.984 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005174/0.1467, allocations: 374.3 kB / 335.4 MB, free: 8.797 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002661/0.147, allocations: 200.2 kB / 335.6 MB, free: 8.703 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.908e-05/0.147, allocations: 9.984 kB / 335.6 MB, free: 8.699 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003493/0.1474, allocations: 318.6 kB / 335.9 MB, free: 8.449 MB / 298.7 MB Notification: Performance of pre-optimization done (n=50): time 1.693e-06/0.1474, allocations: 0 / 335.9 MB, free: 8.449 MB / 298.7 MB Notification: Performance of matching and sorting (n=56): time 0.002108/0.1495, allocations: 1.574 MB / 337.5 MB, free: 7.125 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.19e-05/0.1495, allocations: 158.7 kB / 337.6 MB, free: 6.934 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001072/0.1506, allocations: 1.308 MB / 338.9 MB, free: 5.609 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.547e-05/0.1506, allocations: 37.7 kB / 339 MB, free: 5.566 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004177/0.1511, allocations: 0.8934 MB / 339.9 MB, free: 4.664 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00011/0.1512, allocations: 222.2 kB / 340.1 MB, free: 4.445 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001678/0.1513, allocations: 218.8 kB / 340.3 MB, free: 4.223 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.787e-05/0.1514, allocations: 349.9 kB / 340.7 MB, free: 3.875 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002936/0.1517, allocations: 260.2 kB / 340.9 MB, free: 3.617 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005556/0.1523, allocations: 0.9366 MB / 341.8 MB, free: 2.371 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008399/0.1531, allocations: 1.11 MB / 343 MB, free: 0.9922 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.36e-06/0.1531, allocations: 4 kB / 343 MB, free: 0.9883 MB / 298.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001412/0.1545, allocations: 1.208 MB / 344.2 MB, free: 15.76 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.411e-05/0.1546, allocations: 45.69 kB / 344.2 MB, free: 15.71 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.353e-05/0.1546, allocations: 17.72 kB / 344.2 MB, free: 15.69 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001482/0.1547, allocations: 73.64 kB / 344.3 MB, free: 15.61 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004276/0.1551, allocations: 267.5 kB / 344.6 MB, free: 15.35 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001163/0.1563, allocations: 2.568 MB / 347.1 MB, free: 12.55 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004317/0.1567, allocations: 64.19 kB / 347.2 MB, free: 12.49 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.033e-05/0.1568, allocations: 67.98 kB / 347.3 MB, free: 12.43 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003382/0.1571, allocations: 353.3 kB / 347.6 MB, free: 12.07 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.573e-05/0.1572, allocations: 139.1 kB / 347.7 MB, free: 11.93 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006184/0.1578, allocations: 0.5473 MB / 348.3 MB, free: 11.37 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.608e-06/0.1579, allocations: 11.5 kB / 348.3 MB, free: 11.36 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.645e-06/0.1579, allocations: 4 kB / 348.3 MB, free: 11.36 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.271e-06/0.1579, allocations: 3.984 kB / 348.3 MB, free: 11.36 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001651/0.1595, allocations: 1.702 MB / 350 MB, free: 9.543 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.028e-06/0.1595, allocations: 4 kB / 350 MB, free: 9.539 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002296/0.1597, allocations: 103.9 kB / 350.1 MB, free: 9.438 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.781e-05/0.1598, allocations: 37.7 kB / 350.1 MB, free: 9.395 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.178e-05/0.1598, allocations: 19.98 kB / 350.2 MB, free: 9.375 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001265/0.1611, allocations: 2.535 MB / 352.7 MB, free: 6.613 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.388e-06/0.1611, allocations: 7.938 kB / 352.7 MB, free: 6.605 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008094/0.1619, allocations: 0.9117 MB / 353.6 MB, free: 5.621 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002402/0.1622, allocations: 184.1 kB / 353.8 MB, free: 5.441 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.252e-05/0.1622, allocations: 19.94 kB / 353.8 MB, free: 5.422 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002782/0.1625, allocations: 31.97 kB / 353.9 MB, free: 5.391 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.504e-05/0.1626, allocations: 59.58 kB / 353.9 MB, free: 5.332 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.865e-05/0.1626, allocations: 20 kB / 353.9 MB, free: 5.312 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0007379/0.1634, allocations: 0.85 MB / 354.8 MB, free: 4.461 MB / 314.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1634, allocations: 0 / 354.8 MB, free: 4.461 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006207/0.164, allocations: 307.9 kB / 355.1 MB, free: 4.16 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (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.001097/0.1651, allocations: 1.499 MB / 356.6 MB, free: 2.586 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008702/0.1659, allocations: 0.9332 MB / 357.5 MB, free: 1.609 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.1659, allocations: 0 / 357.5 MB, free: 1.609 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006461/0.1666, allocations: 463.3 kB / 358 MB, free: 1.133 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008833/0.1675, allocations: 341.8 kB / 358.3 MB, free: 0.8047 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01173/0.1792, allocations: 10.97 MB / 369.3 MB, free: 4.996 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004082/0.1796, allocations: 0.5966 MB / 369.9 MB, free: 4.363 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0003738/0.18, allocations: 167.3 kB / 370 MB, free: 4.195 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004476/0.1804, allocations: 0.5745 MB / 370.6 MB, free: 3.621 MB / 330.7 MB Notification: Performance of SimCode: time 9.42e-07/0.1804, allocations: 0 / 370.6 MB, free: 3.621 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04054/0.221, allocations: 30.12 MB / 400.7 MB, free: 5.402 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.844/8.065, allocations: 4.062 kB / 400.7 MB, free: 5.398 MB / 362.7 MB " [Timeout remaining time 652] (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_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_QuasiStationary.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_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_QuasiStationary/DCPM_QuasiStationary.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable loadInertia1.w in file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_res.csv. Warning: Get data of variable loadInertia1.w from file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_res.csv failed! Error: Could not read variable loadInertia2.w in file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_res.csv. Warning: Get data of variable loadInertia2.w from file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_res.csv failed! " [Timeout remaining time 660] "" Variables in the reference:time,dcpm1.la.i,loadInertia1.phi,loadInertia1.w,loadInertia2.phi,loadInertia2.w Variables in the result:time,dcpm1.inertiaRotor.w,dcpm1.la.i,dcpm2.inertiaRotor.w,loadInertia1.phi,loadInertia2.phi [Calling sys.exit(0), Time elapsed: 10.194760547950864]