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.001886/0.001886, allocations: 118 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.001998/0.001998, allocations: 215.2 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.471/1.471, 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_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: 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.001639/0.001639, allocations: 47.94 kB / 342.3 MB, free: 9.984 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08333/0.08497, allocations: 49.13 MB / 391.4 MB, free: 8.688 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.01351/0.09848, allocations: 11.74 MB / 403.2 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006296/0.1048, allocations: 3.227 MB / 406.4 MB, free: 9.648 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001731/0.1065, allocations: 39.88 kB / 406.4 MB, free: 9.609 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002014/0.1085, allocations: 0.6713 MB / 407.1 MB, free: 8.934 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00213/0.1107, allocations: 0.729 MB / 407.8 MB, free: 8.199 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008957/0.1115, allocations: 411.4 kB / 408.2 MB, free: 7.797 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002688/0.1142, allocations: 2.238 MB / 410.5 MB, free: 5.551 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000974/0.1152, allocations: 0.657 MB / 411.1 MB, free: 4.84 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001121/0.1163, allocations: 0.8717 MB / 412 MB, free: 3.965 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001075/0.1174, allocations: 0.9061 MB / 412.9 MB, free: 3.055 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002592/0.1177, allocations: 220 kB / 413.1 MB, free: 2.84 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004217/0.1181, allocations: 256 kB / 413.4 MB, free: 2.59 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003431/0.1184, allocations: 430.4 kB / 413.8 MB, free: 2.168 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001087/0.1195, allocations: 1.019 MB / 414.8 MB, free: 1.145 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003234/0.1228, allocations: 2.697 MB / 417.5 MB, free: 14.44 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.1228, allocations: 0 / 417.5 MB, free: 14.44 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.1228, allocations: 0 / 417.5 MB, free: 14.44 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.149e-05/0.1228, allocations: 0 / 417.5 MB, free: 14.44 MB / 350.1 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.003623/0.1264, allocations: 2.109 MB / 419.6 MB, free: 12.26 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.174e-05/0.1265, allocations: 12.03 kB / 419.6 MB, free: 12.25 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002636/0.1267, allocations: 224 kB / 419.8 MB, free: 12.02 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007792/0.1275, allocations: 271.6 kB / 420.1 MB, free: 11.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001696/0.1292, allocations: 1.052 MB / 421.2 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.063e-05/0.1293, allocations: 115.2 kB / 421.3 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002148/0.1295, allocations: 160 kB / 421.4 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002472/0.132, allocations: 1.487 MB / 422.9 MB, free: 8.824 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.644e-05/0.132, allocations: 11.89 kB / 422.9 MB, free: 8.812 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000123/0.1321, allocations: 64 kB / 423 MB, free: 8.75 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.278e-05/0.1322, allocations: 36 kB / 423 MB, free: 8.715 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001909/0.1341, allocations: 0.9747 MB / 424 MB, free: 7.734 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0085/0.1426, allocations: 6.53 MB / 430.5 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008444/0.1434, allocations: 376.1 kB / 430.9 MB, free: 492 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004292/0.1439, allocations: 205.9 kB / 431.1 MB, free: 284 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.893e-05/0.1439, allocations: 12.42 kB / 431.1 MB, free: 272 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005524/0.1445, allocations: 272.8 kB / 431.4 MB, free: 15.98 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 2.104e-06/0.1445, allocations: 0 / 431.4 MB, free: 15.98 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.003552/0.148, allocations: 1.78 MB / 433.2 MB, free: 14.11 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001872/0.1482, allocations: 166.8 kB / 433.3 MB, free: 13.91 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001978/0.1502, allocations: 1.265 MB / 434.6 MB, free: 12.62 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.537e-05/0.1502, allocations: 41.64 kB / 434.6 MB, free: 12.58 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007577/0.151, allocations: 0.9089 MB / 435.5 MB, free: 11.66 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001904/0.1512, allocations: 210.3 kB / 435.7 MB, free: 11.45 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002895/0.1515, allocations: 218.8 kB / 436 MB, free: 11.23 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000168/0.1516, allocations: 353.9 kB / 436.3 MB, free: 10.88 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004911/0.1521, allocations: 234.4 kB / 436.5 MB, free: 10.65 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009534/0.1531, allocations: 0.8073 MB / 437.3 MB, free: 9.574 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001556/0.1546, allocations: 1.11 MB / 438.4 MB, free: 8.188 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.669e-06/0.1546, allocations: 4 kB / 438.5 MB, free: 8.184 MB / 366.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002399/0.157, allocations: 1.181 MB / 439.6 MB, free: 6.984 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.1e-05/0.1571, allocations: 45.61 kB / 439.7 MB, free: 6.934 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.059e-05/0.1571, allocations: 23.94 kB / 439.7 MB, free: 6.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002795/0.1574, allocations: 74.31 kB / 439.8 MB, free: 6.832 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008232/0.1582, allocations: 263.7 kB / 440 MB, free: 6.574 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002431/0.1607, allocations: 2.777 MB / 442.8 MB, free: 3.516 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001087/0.1618, allocations: 68.02 kB / 442.9 MB, free: 3.449 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.743e-05/0.1618, allocations: 60 kB / 442.9 MB, free: 3.391 MB / 366.1 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.0006379/0.1625, allocations: 357.3 kB / 443.3 MB, free: 3.031 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002092/0.1627, allocations: 143 kB / 443.4 MB, free: 2.891 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00112/0.1638, allocations: 0.545 MB / 444 MB, free: 2.328 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.909e-06/0.1638, allocations: 8 kB / 444 MB, free: 2.32 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.1638, allocations: 0 / 444 MB, free: 2.32 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.187e-06/0.1638, allocations: 3.984 kB / 444 MB, free: 2.316 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003169/0.167, allocations: 1.874 MB / 445.9 MB, free: 328 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.035e-06/0.167, allocations: 4 kB / 445.9 MB, free: 324 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004411/0.1675, allocations: 103.9 kB / 446 MB, free: 220 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001662/0.1676, allocations: 45.64 kB / 446 MB, free: 168 kB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.555e-05/0.1677, allocations: 15.98 kB / 446 MB, free: 152 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00217/0.1698, allocations: 2.753 MB / 448.8 MB, free: 13.12 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/0.1698, allocations: 8.156 kB / 448.8 MB, free: 13.11 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001628/0.1715, allocations: 0.9284 MB / 449.7 MB, free: 12.11 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005015/0.172, allocations: 260.2 kB / 450 MB, free: 11.84 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001368/0.1721, allocations: 19.98 kB / 450 MB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005158/0.1726, allocations: 27.98 kB / 450 MB, free: 11.79 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001461/0.1728, allocations: 59.59 kB / 450.1 MB, free: 11.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.458e-05/0.1728, allocations: 27.92 kB / 450.1 MB, free: 11.7 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001273/0.1741, allocations: 0.8461 MB / 450.9 MB, free: 10.86 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1741, allocations: 0 / 450.9 MB, free: 10.86 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001255/0.1753, allocations: 303.9 kB / 451.2 MB, free: 10.56 MB / 382.1 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.002001/0.1773, allocations: 1.501 MB / 452.7 MB, free: 8.98 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001736/0.1791, allocations: 0.8983 MB / 453.6 MB, free: 8.047 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.1791, allocations: 0 / 453.6 MB, free: 8.047 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007237/0.1798, allocations: 465.4 kB / 454.1 MB, free: 7.566 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001592/0.1814, allocations: 345.7 kB / 454.4 MB, free: 7.23 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1915/0.3728, allocations: 10.92 MB / 465.4 MB, free: 61.36 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007578/0.3736, allocations: 1.177 MB / 466.5 MB, free: 60.65 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006253/0.3742, allocations: 172.2 kB / 466.7 MB, free: 60.64 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00062/0.3748, allocations: 0.5698 MB / 467.3 MB, free: 60.59 MB / 382.1 MB Notification: Performance of SimCode: time 1.804e-06/0.3749, allocations: 1.094 kB / 467.3 MB, free: 60.59 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0696/0.4445, allocations: 27.99 MB / 495.3 MB, free: 42.44 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.46/12.91, allocations: 7.859 kB / 495.3 MB, free: 42.43 MB / 382.1 MB " [Timeout remaining time 647] (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/jenkins1/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/jenkins1/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] Reference file matches [Calling sys.exit(0), Time elapsed: 16.06107265499304]