Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001277/0.001277, allocations: 119.9 kB / 17.79 MB, free: 5.285 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001371/0.001371, allocations: 189.2 kB / 20.73 MB, free: 2.352 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.439/1.439, allocations: 225.6 MB / 249.1 MB, free: 3.621 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001493/0.001493, allocations: 51.92 kB / 365.6 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1112/0.1127, allocations: 52.15 MB / 417.8 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.01073/0.1234, allocations: 8.256 MB / 426.1 MB, free: 4.402 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005246/0.1286, allocations: 2.696 MB / 428.7 MB, free: 1.699 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008851/0.1295, allocations: 23.94 kB / 428.8 MB, free: 1.676 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001658/0.1312, allocations: 0.5793 MB / 429.3 MB, free: 1.094 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001475/0.1327, allocations: 0.5041 MB / 429.9 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005873/0.1332, allocations: 259.7 kB / 430.1 MB, free: 340 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002119/0.1354, allocations: 1.502 MB / 431.6 MB, free: 14.82 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007365/0.1361, allocations: 402.9 kB / 432 MB, free: 14.4 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009506/0.137, allocations: 0.5642 MB / 432.6 MB, free: 13.84 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008907/0.1379, allocations: 0.6144 MB / 433.2 MB, free: 13.22 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001882/0.1381, allocations: 144 kB / 433.3 MB, free: 13.08 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000394/0.1385, allocations: 180 kB / 433.5 MB, free: 12.9 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002533/0.1388, allocations: 282.9 kB / 433.8 MB, free: 12.62 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006479/0.1394, allocations: 0.6765 MB / 434.4 MB, free: 11.95 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002168/0.1416, allocations: 1.763 MB / 436.2 MB, free: 10.18 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.151e-06/0.1416, allocations: 0 / 436.2 MB, free: 10.18 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.1416, allocations: 3.938 kB / 436.2 MB, free: 10.17 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.465e-05/0.1416, allocations: 0 / 436.2 MB, free: 10.17 MB / 366.1 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.003057/0.1447, allocations: 1.525 MB / 437.7 MB, free: 8.594 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 9.484e-05/0.1448, allocations: 8.031 kB / 437.7 MB, free: 8.586 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001776/0.145, allocations: 152.4 kB / 437.9 MB, free: 8.43 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006771/0.1456, allocations: 192 kB / 438.1 MB, free: 8.242 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001463/0.1471, allocations: 0.7663 MB / 438.9 MB, free: 7.434 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.701e-05/0.1472, allocations: 70 kB / 438.9 MB, free: 7.363 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001552/0.1473, allocations: 104 kB / 439 MB, free: 7.262 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001641/0.149, allocations: 0.9386 MB / 440 MB, free: 6.297 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.678e-05/0.149, allocations: 7.953 kB / 440 MB, free: 6.289 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.834e-05/0.1491, allocations: 40 kB / 440 MB, free: 6.25 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.52e-05/0.1491, allocations: 24 kB / 440 MB, free: 6.227 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001384/0.1505, allocations: 0.6442 MB / 440.7 MB, free: 5.578 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005927/0.1564, allocations: 3.943 MB / 444.6 MB, free: 1.414 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008006/0.1572, allocations: 423.9 kB / 445 MB, free: 0.9688 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005905/0.1578, allocations: 257.4 kB / 445.3 MB, free: 0.7148 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.168e-05/0.1579, allocations: 4 kB / 445.3 MB, free: 0.7109 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.857e-05/0.1579, allocations: 30.56 kB / 445.3 MB, free: 0.6719 MB / 366.1 MB Notification: Performance of pre-optimization done (n=41): time 1.904e-06/0.1579, allocations: 3.938 kB / 445.3 MB, free: 0.668 MB / 366.1 MB Notification: Performance of matching and sorting (n=45): time 0.1965/0.3544, allocations: 1.566 MB / 446.9 MB, free: 29.42 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.369e-05/0.3545, allocations: 80.39 kB / 447 MB, free: 29.32 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001039/0.3555, allocations: 0.8402 MB / 447.8 MB, free: 29.19 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.768e-05/0.3555, allocations: 37.61 kB / 447.8 MB, free: 29.16 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000295/0.3558, allocations: 0.5809 MB / 448.4 MB, free: 28.92 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.235e-05/0.3559, allocations: 165.3 kB / 448.6 MB, free: 28.84 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001558/0.3561, allocations: 132 kB / 448.7 MB, free: 28.81 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.629e-05/0.3561, allocations: 335.2 kB / 449 MB, free: 28.51 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000299/0.3564, allocations: 173.8 kB / 449.2 MB, free: 28.5 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003943/0.3568, allocations: 473.6 kB / 449.7 MB, free: 28.14 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007215/0.3575, allocations: 0.6795 MB / 450.4 MB, free: 27.8 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.801e-06/0.3575, allocations: 2.75 kB / 450.4 MB, free: 27.8 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001277/0.3588, allocations: 0.7861 MB / 451.1 MB, free: 27.7 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.189e-05/0.3588, allocations: 13.84 kB / 451.2 MB, free: 27.7 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.636e-05/0.3588, allocations: 11.06 kB / 451.2 MB, free: 27.7 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002577/0.3591, allocations: 86.73 kB / 451.3 MB, free: 27.68 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004597/0.3596, allocations: 152.7 kB / 451.4 MB, free: 27.68 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002013/0.3616, allocations: 3.148 MB / 454.5 MB, free: 24.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006345/0.3622, allocations: 34.53 kB / 454.6 MB, free: 24.81 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.694e-05/0.3623, allocations: 35.41 kB / 454.6 MB, free: 24.81 MB / 366.1 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.0003877/0.3626, allocations: 260.3 kB / 454.9 MB, free: 24.69 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002518/0.3629, allocations: 98.22 kB / 455 MB, free: 24.64 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009221/0.3638, allocations: 0.5005 MB / 455.5 MB, free: 24.55 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.033e-06/0.3638, allocations: 5.156 kB / 455.5 MB, free: 24.55 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.686e-06/0.3638, allocations: 1.031 kB / 455.5 MB, free: 24.55 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.715e-06/0.3638, allocations: 7.391 kB / 455.5 MB, free: 24.55 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002362/0.3662, allocations: 1.482 MB / 457 MB, free: 23.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.821e-06/0.3662, allocations: 1.719 kB / 457 MB, free: 23.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003628/0.3666, allocations: 74.84 kB / 457 MB, free: 23.83 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002222/0.3668, allocations: 73.81 kB / 457.1 MB, free: 23.8 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.264e-05/0.3668, allocations: 13.7 kB / 457.1 MB, free: 23.79 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001813/0.3686, allocations: 3.123 MB / 460.2 MB, free: 20.72 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.3686, allocations: 6.156 kB / 460.3 MB, free: 20.72 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001481/0.3701, allocations: 0.7985 MB / 461 MB, free: 20.25 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003653/0.3705, allocations: 208.5 kB / 461.3 MB, free: 20.07 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.778e-05/0.3706, allocations: 9.5 kB / 461.3 MB, free: 20.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004244/0.371, allocations: 37.47 kB / 461.3 MB, free: 20.05 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001133/0.3711, allocations: 35.31 kB / 461.3 MB, free: 20.04 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.003e-05/0.3712, allocations: 16.05 kB / 461.3 MB, free: 20.04 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0009822/0.3721, allocations: 0.5737 MB / 461.9 MB, free: 19.79 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3721, allocations: 1.406 kB / 461.9 MB, free: 19.79 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00107/0.3732, allocations: 210.2 kB / 462.1 MB, free: 19.77 MB / 366.1 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.001651/0.3749, allocations: 1.373 MB / 463.5 MB, free: 18.76 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001167/0.376, allocations: 0.6899 MB / 464.2 MB, free: 18.37 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.055e-06/0.376, allocations: 1.312 kB / 464.2 MB, free: 18.37 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005758/0.3766, allocations: 445.5 kB / 464.6 MB, free: 18.07 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001061/0.3777, allocations: 231.6 kB / 464.9 MB, free: 17.99 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01055/0.3882, allocations: 7.462 MB / 472.3 MB, free: 13.58 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006608/0.3889, allocations: 1.01 MB / 473.3 MB, free: 12.87 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004957/0.3894, allocations: 111.8 kB / 473.4 MB, free: 12.84 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004099/0.3898, allocations: 392 kB / 473.8 MB, free: 12.54 MB / 366.1 MB Notification: Performance of SimCode: time 1.142e-06/0.3898, allocations: 0 / 473.8 MB, free: 12.54 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05685/0.4466, allocations: 19.6 MB / 493.4 MB, free: 0.8984 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.45/11.9, allocations: 3.438 kB / 493.4 MB, free: 0.8984 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 15.78213757602498]