Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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.0009255/0.0009255, allocations: 80.62 kB / 22.21 MB, free: 2.293 MB / 18.57 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.0009038/0.0009038, allocations: 145.2 kB / 25.59 MB, free: 8.914 MB / 18.57 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 0.9634/0.9634, allocations: 173.4 MB / 202.2 MB, free: 8.289 MB / 186.7 MB " [Timeout remaining time 179] 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: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.253e-06/1.253e-06, allocations: 0 / 269.2 MB, free: 9.758 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.259e-05/1.385e-05, allocations: 5.531 kB / 269.2 MB, free: 9.754 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.009027/0.00904, allocations: 11.72 MB / 280.9 MB, free: 13.99 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005249/0.01429, allocations: 3.219 MB / 284.2 MB, free: 10.77 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008395/0.01513, allocations: 43.81 kB / 284.2 MB, free: 10.73 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001196/0.01632, allocations: 0.6476 MB / 284.8 MB, free: 10.08 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001276/0.0176, allocations: 0.8218 MB / 285.7 MB, free: 9.25 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005514/0.01815, allocations: 415.4 kB / 286.1 MB, free: 8.844 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001676/0.01983, allocations: 2.501 MB / 288.6 MB, free: 6.332 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000733/0.02056, allocations: 0.5992 MB / 289.2 MB, free: 5.68 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001172/0.02173, allocations: 1.419 MB / 290.6 MB, free: 4.258 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009313/0.02266, allocations: 0.7712 MB / 291.4 MB, free: 3.484 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001828/0.02285, allocations: 224 kB / 291.6 MB, free: 3.266 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002914/0.02314, allocations: 268 kB / 291.8 MB, free: 3.004 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002252/0.02336, allocations: 462.2 kB / 292.3 MB, free: 2.551 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004959/0.02386, allocations: 0.7405 MB / 293 MB, free: 1.809 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001097/0.02495, allocations: 1.483 MB / 294.5 MB, free: 328 kB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.304e-06/0.02496, allocations: 0 / 294.5 MB, free: 328 kB / 266.7 MB Notification: Performance of FrontEnd: time 8.72e-07/0.02496, allocations: 0 / 294.5 MB, free: 328 kB / 266.7 MB Notification: Performance of Transformations before backend: time 1.356e-05/0.02497, allocations: 0 / 294.5 MB, free: 328 kB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.002036/0.02701, allocations: 2.254 MB / 296.8 MB, free: 14.01 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.053e-05/0.02704, allocations: 11.97 kB / 296.8 MB, free: 14 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005591/0.0276, allocations: 419.5 kB / 297.2 MB, free: 13.59 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009505/0.02855, allocations: 1.004 MB / 298.2 MB, free: 12.54 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003024/0.02885, allocations: 115.5 kB / 298.3 MB, free: 12.43 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001359/0.02899, allocations: 164.2 kB / 298.5 MB, free: 12.27 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001055/0.03004, allocations: 1.175 MB / 299.6 MB, free: 10.99 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.747e-05/0.03008, allocations: 11.94 kB / 299.7 MB, free: 10.98 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.514e-05/0.03015, allocations: 64 kB / 299.7 MB, free: 10.91 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.259e-05/0.03018, allocations: 36 kB / 299.8 MB, free: 10.88 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005418/0.03072, allocations: 458.6 kB / 300.2 MB, free: 10.42 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004728/0.03545, allocations: 5.954 MB / 306.2 MB, free: 4.164 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005991/0.03604, allocations: 388 kB / 306.5 MB, free: 3.773 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003433/0.03639, allocations: 273.3 kB / 306.8 MB, free: 3.504 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.141e-05/0.03642, allocations: 12.66 kB / 306.8 MB, free: 3.488 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.469e-05/0.03644, allocations: 45.98 kB / 306.9 MB, free: 3.434 MB / 282.7 MB Notification: Performance of pre-optimization done (n=66): time 1.894e-06/0.03645, allocations: 0 / 306.9 MB, free: 3.434 MB / 282.7 MB Notification: Performance of matching and sorting (n=72): time 0.001784/0.03823, allocations: 1.337 MB / 308.2 MB, free: 2.062 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.406e-05/0.03827, allocations: 111.5 kB / 308.3 MB, free: 1.93 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007663/0.03904, allocations: 1.098 MB / 309.4 MB, free: 0.8203 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.173e-05/0.03907, allocations: 37.7 kB / 309.4 MB, free: 0.7773 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000455/0.03953, allocations: 0.9666 MB / 310.4 MB, free: 15.8 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001312/0.03966, allocations: 273.7 kB / 310.7 MB, free: 15.53 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001833/0.03984, allocations: 220.3 kB / 310.9 MB, free: 15.3 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000132/0.03997, allocations: 0.5196 MB / 311.4 MB, free: 14.78 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001369/0.04011, allocations: 118.5 kB / 311.5 MB, free: 14.66 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006999/0.04081, allocations: 0.8102 MB / 312.3 MB, free: 13.55 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006418/0.04145, allocations: 0.9714 MB / 313.3 MB, free: 12.29 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.962e-06/0.04146, allocations: 4 kB / 313.3 MB, free: 12.29 MB / 298.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.0009635/0.04242, allocations: 0.9407 MB / 314.3 MB, free: 11.32 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.934e-05/0.04244, allocations: 12 kB / 314.3 MB, free: 11.31 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.41e-05/0.04246, allocations: 16.5 kB / 314.3 MB, free: 11.3 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003204/0.04278, allocations: 142.9 kB / 314.4 MB, free: 11.14 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004516/0.04323, allocations: 251.6 kB / 314.7 MB, free: 10.9 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002685/0.04591, allocations: 5.541 MB / 320.2 MB, free: 5.016 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004058/0.04632, allocations: 51.94 kB / 320.3 MB, free: 4.965 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.574e-05/0.04636, allocations: 52.06 kB / 320.3 MB, free: 4.914 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * 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 (137): * Single equations (assignments): 134 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0002328/0.0466, allocations: 244 kB / 320.5 MB, free: 4.664 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001361/0.04673, allocations: 159.2 kB / 320.7 MB, free: 4.508 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006358/0.04737, allocations: 0.5437 MB / 321.2 MB, free: 3.941 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.04737, allocations: 7.984 kB / 321.3 MB, free: 3.934 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.581e-06/0.04738, allocations: 8 kB / 321.3 MB, free: 3.926 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.04738, allocations: 0 / 321.3 MB, free: 3.926 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001688/0.04907, allocations: 1.588 MB / 322.8 MB, free: 2.23 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.46e-06/0.04908, allocations: 4 kB / 322.9 MB, free: 2.227 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002989/0.04938, allocations: 124.3 kB / 323 MB, free: 2.105 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003354/0.04971, allocations: 154.9 kB / 323.1 MB, free: 1.941 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.255e-05/0.04974, allocations: 27.92 kB / 323.2 MB, free: 1.914 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002657/0.0524, allocations: 5.603 MB / 328.8 MB, free: 11.97 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.429e-06/0.0524, allocations: 11.97 kB / 328.8 MB, free: 11.96 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008903/0.05329, allocations: 0.9527 MB / 329.7 MB, free: 10.91 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002345/0.05353, allocations: 191 kB / 329.9 MB, free: 10.72 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.477e-05/0.05361, allocations: 27.98 kB / 329.9 MB, free: 10.7 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002727/0.05389, allocations: 27.98 kB / 330 MB, free: 10.67 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.181e-05/0.05397, allocations: 72.27 kB / 330 MB, free: 10.6 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.46e-05/0.05399, allocations: 16 kB / 330 MB, free: 10.58 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004424/0.05444, allocations: 0.6158 MB / 330.7 MB, free: 9.961 MB / 314.7 MB Notification: Performance of sort global known variables: time 8e-08/0.05444, allocations: 0 / 330.7 MB, free: 9.961 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00073/0.05517, allocations: 324 kB / 331 MB, free: 9.645 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.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 (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001809/0.05535, allocations: 135.1 kB / 331.1 MB, free: 9.504 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000794/0.05614, allocations: 1.007 MB / 332.1 MB, free: 8.445 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.05614, allocations: 0 / 332.1 MB, free: 8.445 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004351/0.05658, allocations: 0.7327 MB / 332.9 MB, free: 7.656 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008688/0.05745, allocations: 356.1 kB / 333.2 MB, free: 7.312 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003243/0.06069, allocations: 2.694 MB / 335.9 MB, free: 4.504 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001675/0.06086, allocations: 249 kB / 336.1 MB, free: 4.234 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.000343/0.0612, allocations: 150.8 kB / 336.3 MB, free: 4.082 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005007/0.0617, allocations: 398 kB / 336.7 MB, free: 3.691 MB / 314.7 MB Notification: Performance of SimCode: time 8.62e-07/0.0617, allocations: 0 / 336.7 MB, free: 3.691 MB / 314.7 MB Notification: Performance of Templates: time 0.02315/0.08485, allocations: 19.1 MB / 355.8 MB, free: 0.8789 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.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: 3.432284912094474]