Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007704/0.0007704, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009472/0.001718, allocations: 449.7 kB / 10.37 MB, free: 324 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0006867/0.0006867, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008278/0.001514, allocations: 463.6 kB / 11.72 MB, free: 2.453 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9504/0.9504, allocations: 177.4 MB / 189.9 MB, free: 4.828 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08432/1.035, allocations: 53.86 MB / 243.7 MB, free: 14.91 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.272e-06/1.272e-06, allocations: 0 / 245 MB, free: 13.64 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.163e-05/1.29e-05, allocations: 2.312 kB / 245 MB, free: 13.64 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.006646/0.006659, allocations: 8.106 MB / 253.1 MB, free: 5.492 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004321/0.01098, allocations: 2.863 MB / 256 MB, free: 2.621 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005878/0.01157, allocations: 27.88 kB / 256 MB, free: 2.594 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001125/0.01269, allocations: 0.5556 MB / 256.6 MB, free: 2.035 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008698/0.01356, allocations: 0.5194 MB / 257.1 MB, free: 1.512 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004289/0.01399, allocations: 279.5 kB / 257.4 MB, free: 1.238 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001221/0.01521, allocations: 1.568 MB / 258.9 MB, free: 15.66 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004925/0.01571, allocations: 379.3 kB / 259.3 MB, free: 15.26 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001062/0.01677, allocations: 1.033 MB / 260.3 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005294/0.0173, allocations: 490.6 kB / 260.8 MB, free: 13.73 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001387/0.01744, allocations: 136 kB / 260.9 MB, free: 13.6 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000289/0.01773, allocations: 180 kB / 261.1 MB, free: 13.43 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001547/0.01788, allocations: 219.2 kB / 261.3 MB, free: 13.21 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003913/0.01827, allocations: 399.2 kB / 261.7 MB, free: 12.82 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001212/0.01948, allocations: 0.9028 MB / 262.6 MB, free: 11.91 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.552e-05/0.0195, allocations: 0 / 262.6 MB, free: 11.91 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.92e-07/0.0195, allocations: 4 kB / 262.6 MB, free: 11.91 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.525e-05/0.01952, allocations: 0 / 262.6 MB, free: 11.91 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.001781/0.02131, allocations: 1.651 MB / 264.3 MB, free: 10.23 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.91e-05/0.02134, allocations: 8.031 kB / 264.3 MB, free: 10.22 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005488/0.02188, allocations: 317.8 kB / 264.6 MB, free: 9.891 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007649/0.02265, allocations: 0.5534 MB / 265.2 MB, free: 9.305 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.204e-05/0.0227, allocations: 74 kB / 265.2 MB, free: 9.234 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001012/0.0228, allocations: 99.98 kB / 265.3 MB, free: 9.137 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000786/0.02359, allocations: 0.7692 MB / 266.1 MB, free: 8.312 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.938e-05/0.02362, allocations: 11.89 kB / 266.1 MB, free: 8.301 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.197e-05/0.02367, allocations: 44 kB / 266.1 MB, free: 8.258 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.927e-05/0.02369, allocations: 24 kB / 266.2 MB, free: 8.234 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003769/0.02407, allocations: 245.8 kB / 266.4 MB, free: 7.996 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003045/0.02711, allocations: 2.977 MB / 269.4 MB, free: 4.828 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003146/0.02743, allocations: 234.7 kB / 269.6 MB, free: 4.598 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004902/0.02792, allocations: 173.4 kB / 269.8 MB, free: 4.426 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.703e-05/0.02794, allocations: 8 kB / 269.8 MB, free: 4.418 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.394e-05/0.02797, allocations: 34.56 kB / 269.8 MB, free: 4.375 MB / 266.7 MB Notification: Performance of pre-optimization done (n=41): time 1.924e-06/0.02797, allocations: 3.938 kB / 269.8 MB, free: 4.371 MB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.0013/0.02927, allocations: 0.7982 MB / 270.6 MB, free: 3.535 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.823e-05/0.0293, allocations: 59.41 kB / 270.7 MB, free: 3.465 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005805/0.02988, allocations: 0.673 MB / 271.4 MB, free: 2.781 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.126e-05/0.0299, allocations: 29.7 kB / 271.4 MB, free: 2.746 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002435/0.03014, allocations: 0.505 MB / 271.9 MB, free: 2.234 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.33e-05/0.03024, allocations: 174.5 kB / 272.1 MB, free: 2.062 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001372/0.03037, allocations: 134.5 kB / 272.2 MB, free: 1.922 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001289/0.0305, allocations: 394.5 kB / 272.6 MB, free: 1.527 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.792e-05/0.03059, allocations: 65.91 kB / 272.6 MB, free: 1.465 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002514/0.03084, allocations: 389.3 kB / 273 MB, free: 0.9453 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004106/0.03125, allocations: 496.6 kB / 273.5 MB, free: 336 kB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.037e-06/0.03126, allocations: 4 kB / 273.5 MB, free: 332 kB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0005932/0.03185, allocations: 498.3 kB / 274 MB, free: 15.82 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.759e-05/0.03187, allocations: 8 kB / 274 MB, free: 15.82 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.313e-05/0.03188, allocations: 12 kB / 274 MB, free: 15.8 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001787/0.03206, allocations: 69.88 kB / 274.1 MB, free: 15.73 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003901/0.03245, allocations: 171.7 kB / 274.3 MB, free: 15.56 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001821/0.03427, allocations: 2.601 MB / 276.9 MB, free: 12.79 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003134/0.03458, allocations: 31.98 kB / 276.9 MB, free: 12.75 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.211e-05/0.03462, allocations: 28 kB / 276.9 MB, free: 12.73 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.0001659/0.03478, allocations: 165.5 kB / 277.1 MB, free: 12.55 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.467e-05/0.03487, allocations: 63.92 kB / 277.1 MB, free: 12.49 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003811/0.03525, allocations: 298.8 kB / 277.4 MB, free: 12.18 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.03525, allocations: 4 kB / 277.4 MB, free: 12.18 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.03525, allocations: 4.125 kB / 277.4 MB, free: 12.18 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.03526, allocations: 11.98 kB / 277.5 MB, free: 12.16 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009861/0.03625, allocations: 0.7712 MB / 278.2 MB, free: 11.34 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.03625, allocations: 4 kB / 278.2 MB, free: 11.34 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002268/0.03648, allocations: 80.12 kB / 278.3 MB, free: 11.26 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001453/0.03662, allocations: 79.42 kB / 278.4 MB, free: 11.18 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001374/0.03676, allocations: 57.67 kB / 278.4 MB, free: 11.12 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.196e-05/0.03678, allocations: 12 kB / 278.5 MB, free: 11.11 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001309/0.03809, allocations: 2.588 MB / 281 MB, free: 8.344 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.599e-06/0.03809, allocations: 11.97 kB / 281.1 MB, free: 8.332 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004777/0.03857, allocations: 482.3 kB / 281.5 MB, free: 7.816 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.809e-05/0.03864, allocations: 8.047 kB / 281.5 MB, free: 7.809 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002448/0.03889, allocations: 35.97 kB / 281.6 MB, free: 7.773 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.726e-05/0.03894, allocations: 35.88 kB / 281.6 MB, free: 7.738 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.756e-05/0.03896, allocations: 12 kB / 281.6 MB, free: 7.727 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003115/0.03927, allocations: 327.3 kB / 281.9 MB, free: 7.41 MB / 282.7 MB Notification: Performance of sort global known variables: time 9e-08/0.03927, allocations: 0 / 281.9 MB, free: 7.41 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006066/0.03988, allocations: 208 kB / 282.1 MB, free: 7.207 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.000159/0.04004, allocations: 108.3 kB / 282.2 MB, free: 7.094 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005668/0.0406, allocations: 0.5356 MB / 282.8 MB, free: 6.535 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.679e-05/0.04063, allocations: 16.48 kB / 282.8 MB, free: 6.52 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003174/0.04095, allocations: 359.9 kB / 283.1 MB, free: 6.141 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007066/0.04165, allocations: 283 kB / 283.4 MB, free: 5.863 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01267/0.05433, allocations: 1.765 MB / 285.2 MB, free: 4.035 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001526/0.05448, allocations: 183.5 kB / 285.4 MB, free: 3.836 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002968/0.05478, allocations: 106.7 kB / 285.5 MB, free: 3.727 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003662/0.05514, allocations: 229.2 kB / 285.7 MB, free: 3.5 MB / 282.7 MB Notification: Performance of SimCode: time 7.41e-07/0.05514, allocations: 0 / 285.7 MB, free: 3.5 MB / 282.7 MB Notification: Performance of Templates: time 0.1049/0.16, allocations: 11.61 MB / 297.3 MB, free: 32.82 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.7998030111193657]