Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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.0008269/0.0008269, 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.004655/0.004655, allocations: 166 kB / 24.7 MB, free: 8.887 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.8561/0.8561, 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.DCSE_SinglePhase,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.423e-06/1.423e-06, allocations: 0 / 298.4 MB, free: 3.516 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.55e-05/2.692e-05, allocations: 2.281 kB / 298.4 MB, free: 3.512 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.1427/0.1428, allocations: 7.207 MB / 305.7 MB, free: 12 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003396/0.1462, allocations: 2.555 MB / 308.2 MB, free: 10.48 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000543/0.1467, allocations: 28.38 kB / 308.2 MB, free: 10.47 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00107/0.1478, allocations: 0.5305 MB / 308.8 MB, free: 10.21 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008354/0.1486, allocations: 0.525 MB / 309.3 MB, free: 9.828 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004328/0.149, allocations: 271.5 kB / 309.6 MB, free: 9.656 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001226/0.1503, allocations: 1.563 MB / 311.1 MB, free: 8.785 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004979/0.1508, allocations: 380.2 kB / 311.5 MB, free: 8.57 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009503/0.1517, allocations: 0.8688 MB / 312.4 MB, free: 8.164 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005488/0.1523, allocations: 451 kB / 312.8 MB, free: 8.004 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001589/0.1524, allocations: 140.2 kB / 312.9 MB, free: 8.004 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002984/0.1527, allocations: 177.3 kB / 313.1 MB, free: 7.996 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001389/0.1529, allocations: 292.9 kB / 313.4 MB, free: 7.777 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003957/0.1533, allocations: 478.6 kB / 313.9 MB, free: 7.555 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001619/0.1549, allocations: 1.755 MB / 315.6 MB, free: 6.914 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.471e-06/0.1549, allocations: 3.938 kB / 315.6 MB, free: 6.91 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.1549, allocations: 0 / 315.6 MB, free: 6.91 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.638e-05/0.1549, allocations: 2.062 kB / 315.6 MB, free: 6.91 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.001822/0.1567, allocations: 1.421 MB / 317 MB, free: 5.977 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.142e-05/0.1568, allocations: 14.23 kB / 317.1 MB, free: 5.973 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001315/0.1569, allocations: 147.2 kB / 317.2 MB, free: 5.875 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004153/0.1573, allocations: 201.4 kB / 317.4 MB, free: 5.797 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009402/0.1583, allocations: 0.6877 MB / 318.1 MB, free: 5.328 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.521e-05/0.1583, allocations: 74.03 kB / 318.2 MB, free: 5.297 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001003/0.1584, allocations: 104.4 kB / 318.3 MB, free: 5.258 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001056/0.1595, allocations: 1.036 MB / 319.3 MB, free: 4.707 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.68e-05/0.1595, allocations: 11.84 kB / 319.3 MB, free: 4.699 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.924e-05/0.1595, allocations: 40.38 kB / 319.3 MB, free: 4.668 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.967e-05/0.1596, allocations: 25.34 kB / 319.4 MB, free: 4.668 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008691/0.1604, allocations: 0.6482 MB / 320 MB, free: 4.43 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003155/0.1636, allocations: 3.517 MB / 323.5 MB, free: 1.609 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004503/0.164, allocations: 350.5 kB / 323.9 MB, free: 1.414 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003789/0.1644, allocations: 260.8 kB / 324.1 MB, free: 1.293 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.967e-05/0.1644, allocations: 4.469 kB / 324.1 MB, free: 1.293 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.779e-05/0.1645, allocations: 37 kB / 324.2 MB, free: 1.25 MB / 282.7 MB Notification: Performance of pre-optimization done (n=41): time 3.076e-06/0.1645, allocations: 1.344 kB / 324.2 MB, free: 1.25 MB / 282.7 MB Notification: Performance of matching and sorting (n=45): time 0.001885/0.1663, allocations: 1.334 MB / 325.5 MB, free: 440 kB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.265e-05/0.1664, allocations: 89.2 kB / 325.6 MB, free: 336 kB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007964/0.1672, allocations: 0.8498 MB / 326.4 MB, free: 15.84 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.564e-05/0.1672, allocations: 37.11 kB / 326.5 MB, free: 15.8 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002847/0.1675, allocations: 0.5809 MB / 327.1 MB, free: 15.28 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.244e-05/0.1676, allocations: 168 kB / 327.2 MB, free: 15.14 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001322/0.1677, allocations: 132.1 kB / 327.4 MB, free: 15.05 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.837e-05/0.1678, allocations: 332.6 kB / 327.7 MB, free: 14.73 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002314/0.168, allocations: 180.1 kB / 327.9 MB, free: 14.64 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003679/0.1684, allocations: 498.4 kB / 328.3 MB, free: 14.14 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006218/0.169, allocations: 0.6746 MB / 329 MB, free: 13.55 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/0.169, allocations: 3.594 kB / 329 MB, free: 13.55 MB / 298.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0009008/0.1699, allocations: 0.7905 MB / 329.8 MB, free: 13.12 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.506e-05/0.1699, allocations: 9.094 kB / 329.8 MB, free: 13.12 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.216e-05/0.17, allocations: 13.56 kB / 329.8 MB, free: 13.12 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001949/0.1702, allocations: 87.64 kB / 329.9 MB, free: 13.07 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002955/0.1704, allocations: 155.3 kB / 330.1 MB, free: 13.04 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001705/0.1722, allocations: 2.926 MB / 333 MB, free: 10.14 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003952/0.1725, allocations: 38.83 kB / 333 MB, free: 10.12 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.017e-05/0.1726, allocations: 32.34 kB / 333.1 MB, free: 10.12 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (85): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * 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,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003009/0.1729, allocations: 261.7 kB / 333.3 MB, free: 9.91 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.566e-05/0.173, allocations: 98.05 kB / 333.4 MB, free: 9.855 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005953/0.1736, allocations: 0.4995 MB / 333.9 MB, free: 9.555 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.1736, allocations: 8.719 kB / 333.9 MB, free: 9.551 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.467e-06/0.1736, allocations: 1.062 kB / 333.9 MB, free: 9.551 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.1736, allocations: 5.109 kB / 333.9 MB, free: 9.547 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001564/0.1751, allocations: 1.339 MB / 335.3 MB, free: 8.582 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/0.1751, allocations: 1.375 kB / 335.3 MB, free: 8.582 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001822/0.1753, allocations: 72.28 kB / 335.3 MB, free: 8.566 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001343/0.1755, allocations: 73.64 kB / 335.4 MB, free: 8.523 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.113e-05/0.1755, allocations: 12.12 kB / 335.4 MB, free: 8.516 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001442/0.1769, allocations: 2.92 MB / 338.3 MB, free: 5.621 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.1769, allocations: 1.281 kB / 338.4 MB, free: 5.621 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007863/0.1777, allocations: 0.7966 MB / 339.1 MB, free: 4.785 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002003/0.1779, allocations: 131.4 kB / 339.3 MB, free: 4.656 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.497e-05/0.178, allocations: 12 kB / 339.3 MB, free: 4.645 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002159/0.1782, allocations: 31.91 kB / 339.3 MB, free: 4.613 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.867e-05/0.1782, allocations: 43.88 kB / 339.4 MB, free: 4.57 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.639e-05/0.1783, allocations: 12 kB / 339.4 MB, free: 4.559 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0005472/0.1788, allocations: 0.5732 MB / 339.9 MB, free: 3.988 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.1788, allocations: 0 / 339.9 MB, free: 3.988 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006953/0.1795, allocations: 211.9 kB / 340.2 MB, free: 3.781 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.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 (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * 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,5,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.001118/0.1806, allocations: 1.358 MB / 341.5 MB, free: 2.367 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008225/0.1814, allocations: 0.6902 MB / 342.2 MB, free: 1.652 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.1814, allocations: 4.062 kB / 342.2 MB, free: 1.648 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003753/0.1818, allocations: 441 kB / 342.6 MB, free: 1.191 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006944/0.1825, allocations: 232 kB / 342.9 MB, free: 0.9727 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008242/0.1908, allocations: 7.423 MB / 350.3 MB, free: 9.105 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003134/0.1911, allocations: 430.6 kB / 350.7 MB, free: 8.656 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003522/0.1914, allocations: 111.2 kB / 350.8 MB, free: 8.543 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003329/0.1918, allocations: 388.4 kB / 351.2 MB, free: 8.164 MB / 314.7 MB Notification: Performance of SimCode: time 1.412e-06/0.1918, allocations: 0 / 351.2 MB, free: 8.164 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03962/0.2314, allocations: 21.32 MB / 372.5 MB, free: 2.766 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.527/7.758, allocations: 11.98 kB / 372.5 MB, free: 2.754 MB / 330.7 MB " [Timeout remaining time 652] (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_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_DCSE_SinglePhase.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable loadInertia.phi in file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.csv. Warning: Get data of variable loadInertia.phi from file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.csv failed! Error: Could not read variable loadInertia.w in file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.csv. Warning: Get data of variable loadInertia.w from file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.800470440648496]