Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001025/0.001025, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001086/0.002111, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0006995/0.0006995, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.000849/0.001548, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9231/0.9231, allocations: 177.2 MB / 189.6 MB, free: 5.32 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08267/1.006, allocations: 53.65 MB / 243.3 MB, free: 15.59 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.372e-06/1.372e-06, allocations: 0 / 244.5 MB, free: 14.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.287e-06/1.066e-05, allocations: 2.312 kB / 244.5 MB, free: 14.32 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.01342/0.01343, allocations: 8.106 MB / 252.6 MB, free: 6.172 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.006479/0.01991, allocations: 2.793 MB / 255.4 MB, free: 3.367 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004017/0.02031, allocations: 27.88 kB / 255.5 MB, free: 3.34 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003244/0.02355, allocations: 0.5401 MB / 256 MB, free: 2.797 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007839/0.02434, allocations: 0.531 MB / 256.5 MB, free: 2.262 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003723/0.02471, allocations: 271.6 kB / 256.8 MB, free: 1.996 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.00115/0.02586, allocations: 1.571 MB / 258.4 MB, free: 432 kB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004914/0.02635, allocations: 391.2 kB / 258.7 MB, free: 16 kB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001059/0.02741, allocations: 1.033 MB / 259.8 MB, free: 14.96 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005295/0.02794, allocations: 490.5 kB / 260.3 MB, free: 14.48 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001421/0.02808, allocations: 140 kB / 260.4 MB, free: 14.35 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002981/0.02838, allocations: 180 kB / 260.6 MB, free: 14.17 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001479/0.02853, allocations: 215.2 kB / 260.8 MB, free: 13.96 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003729/0.0289, allocations: 403.2 kB / 261.2 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009707/0.02987, allocations: 0.9028 MB / 262.1 MB, free: 12.66 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.323e-05/0.02988, allocations: 0 / 262.1 MB, free: 12.66 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.62e-07/0.02988, allocations: 0 / 262.1 MB, free: 12.66 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.588e-05/0.0299, allocations: 0 / 262.1 MB, free: 12.66 MB / 266.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.001731/0.03163, allocations: 1.651 MB / 263.7 MB, free: 10.98 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.333e-05/0.03166, allocations: 8.031 kB / 263.7 MB, free: 10.97 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005533/0.03222, allocations: 317.8 kB / 264 MB, free: 10.64 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007496/0.03297, allocations: 0.5456 MB / 264.6 MB, free: 10.06 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.883e-05/0.03302, allocations: 74 kB / 264.7 MB, free: 9.992 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001051/0.03312, allocations: 104 kB / 264.8 MB, free: 9.891 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007671/0.03389, allocations: 0.7731 MB / 265.5 MB, free: 9.062 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.582e-05/0.03391, allocations: 7.891 kB / 265.5 MB, free: 9.055 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.899e-05/0.03396, allocations: 40 kB / 265.6 MB, free: 9.016 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.864e-05/0.03398, allocations: 24 kB / 265.6 MB, free: 8.992 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000366/0.03435, allocations: 245.8 kB / 265.8 MB, free: 8.754 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003014/0.03736, allocations: 2.969 MB / 268.8 MB, free: 5.594 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003053/0.03767, allocations: 245.2 kB / 269.1 MB, free: 5.352 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002533/0.03792, allocations: 168.7 kB / 269.2 MB, free: 5.184 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.56e-05/0.03795, allocations: 8 kB / 269.2 MB, free: 5.176 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.327e-05/0.03797, allocations: 34.56 kB / 269.3 MB, free: 5.133 MB / 266.7 MB Notification: Performance of pre-optimization done (n=41): time 1.653e-06/0.03797, allocations: 0 / 269.3 MB, free: 5.133 MB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.001268/0.03924, allocations: 0.8059 MB / 270.1 MB, free: 4.293 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.597e-05/0.03926, allocations: 55.41 kB / 270.1 MB, free: 4.227 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005687/0.03983, allocations: 0.6691 MB / 270.8 MB, free: 3.543 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.327e-05/0.03986, allocations: 37.7 kB / 270.8 MB, free: 3.5 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002249/0.04211, allocations: 0.4972 MB / 271.3 MB, free: 2.996 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.428e-05/0.0422, allocations: 170.5 kB / 271.5 MB, free: 2.828 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001349/0.04233, allocations: 130.5 kB / 271.6 MB, free: 2.691 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001403/0.04247, allocations: 410.5 kB / 272 MB, free: 2.281 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.817e-05/0.04256, allocations: 57.97 kB / 272.1 MB, free: 2.227 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002495/0.04281, allocations: 393.3 kB / 272.5 MB, free: 1.699 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004068/0.04322, allocations: 492.3 kB / 272.9 MB, free: 1.086 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.989e-06/0.04322, allocations: 4 kB / 272.9 MB, free: 1.082 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.000583/0.04381, allocations: 498.2 kB / 273.4 MB, free: 0.582 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.602e-05/0.04382, allocations: 8 kB / 273.4 MB, free: 0.5742 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.048e-05/0.04383, allocations: 8.531 kB / 273.5 MB, free: 0.5664 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001759/0.04401, allocations: 73.67 kB / 273.5 MB, free: 500 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003808/0.04439, allocations: 175.7 kB / 273.7 MB, free: 324 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001396/0.04579, allocations: 2.604 MB / 276.3 MB, free: 13.54 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000302/0.04609, allocations: 36.14 kB / 276.3 MB, free: 13.5 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.246e-05/0.04612, allocations: 24 kB / 276.4 MB, free: 13.48 MB / 282.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.0001623/0.04628, allocations: 165.5 kB / 276.5 MB, free: 13.3 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.284e-05/0.04637, allocations: 67.88 kB / 276.6 MB, free: 13.24 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003243/0.04669, allocations: 307 kB / 276.9 MB, free: 12.92 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.516e-06/0.04669, allocations: 8 kB / 276.9 MB, free: 12.91 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.956e-06/0.0467, allocations: 4 kB / 276.9 MB, free: 12.91 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.529e-06/0.0467, allocations: 3.984 kB / 276.9 MB, free: 12.91 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007374/0.04744, allocations: 0.7713 MB / 277.7 MB, free: 12.08 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.04744, allocations: 0 / 277.7 MB, free: 12.08 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001616/0.0476, allocations: 79.89 kB / 277.7 MB, free: 12 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001103/0.04771, allocations: 79.42 kB / 277.8 MB, free: 11.93 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001051/0.04782, allocations: 65.8 kB / 277.9 MB, free: 11.86 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.343e-05/0.04783, allocations: 8 kB / 277.9 MB, free: 11.85 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001004/0.04884, allocations: 2.581 MB / 280.5 MB, free: 9.094 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/0.04884, allocations: 7.938 kB / 280.5 MB, free: 9.086 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003778/0.04922, allocations: 487 kB / 281 MB, free: 8.562 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.114e-05/0.04927, allocations: 15.98 kB / 281 MB, free: 8.547 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001606/0.04943, allocations: 19.98 kB / 281 MB, free: 8.527 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.509e-05/0.04947, allocations: 39.88 kB / 281 MB, free: 8.488 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.185e-05/0.04949, allocations: 8 kB / 281 MB, free: 8.48 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002236/0.04971, allocations: 331.3 kB / 281.4 MB, free: 8.16 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.04971, allocations: 0 / 281.4 MB, free: 8.16 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004014/0.05011, allocations: 204 kB / 281.6 MB, free: 7.961 MB / 282.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.0001271/0.05024, allocations: 112.3 kB / 281.7 MB, free: 7.844 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004315/0.05067, allocations: 0.5355 MB / 282.2 MB, free: 7.285 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.025e-05/0.05069, allocations: 16.5 kB / 282.2 MB, free: 7.27 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002422/0.05093, allocations: 374.3 kB / 282.6 MB, free: 6.875 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000493/0.05142, allocations: 275 kB / 282.9 MB, free: 6.605 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008466/0.05989, allocations: 1.745 MB / 284.6 MB, free: 4.793 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001177/0.06001, allocations: 187.3 kB / 284.8 MB, free: 4.59 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002019/0.06021, allocations: 102.7 kB / 284.9 MB, free: 4.484 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002778/0.06049, allocations: 233.2 kB / 285.1 MB, free: 4.254 MB / 282.7 MB Notification: Performance of SimCode: time 9.12e-07/0.06049, allocations: 0 / 285.1 MB, free: 4.254 MB / 282.7 MB Notification: Performance of Templates: time 0.1088/0.1693, allocations: 11.61 MB / 296.7 MB, free: 27.79 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8838604325428605]