Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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.001328/0.001328, allocations: 115.1 kB / 18.46 MB, free: 4.543 MB / 14.72 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.00149/0.00149, allocations: 215.2 kB / 21.42 MB, free: 1.582 MB / 14.72 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 1.524/1.524, allocations: 230.6 MB / 254.8 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] 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.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.1.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.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00167/0.00167, allocations: 51.92 kB / 374.2 MB, free: 9.691 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1068, allocations: 53.33 MB / 427.5 MB, free: 4.266 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.2156/0.3224, allocations: 12.21 MB / 439.7 MB, free: 4.566 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006589/0.329, allocations: 3.31 MB / 443 MB, free: 2.742 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002802/0.3318, allocations: 46.78 kB / 443.1 MB, free: 2.727 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002617/0.3344, allocations: 0.6841 MB / 443.8 MB, free: 2.367 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003068/0.3375, allocations: 0.7904 MB / 444.5 MB, free: 1.789 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001399/0.3389, allocations: 395.8 kB / 444.9 MB, free: 1.543 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004494/0.3434, allocations: 2.419 MB / 447.3 MB, free: 240 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00173/0.3451, allocations: 0.6532 MB / 448 MB, free: 15.81 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002306/0.3474, allocations: 0.9362 MB / 448.9 MB, free: 15.33 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002593/0.35, allocations: 0.9778 MB / 449.9 MB, free: 14.8 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007223/0.3507, allocations: 233.9 kB / 450.1 MB, free: 14.8 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001445/0.3522, allocations: 270.5 kB / 450.4 MB, free: 14.79 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008951/0.3531, allocations: 450.6 kB / 450.8 MB, free: 14.46 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002751/0.3558, allocations: 1.081 MB / 451.9 MB, free: 13.77 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005563/0.3614, allocations: 2.841 MB / 454.8 MB, free: 12.68 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.3614, allocations: 0 / 454.8 MB, free: 12.68 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.3614, allocations: 5.125 kB / 454.8 MB, free: 12.68 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000131/0.3615, allocations: 0 / 454.8 MB, free: 12.68 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.006859/0.3684, allocations: 2.207 MB / 457 MB, free: 11.25 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.823e-05/0.3684, allocations: 9.906 kB / 457 MB, free: 11.25 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001464/0.3699, allocations: 289.5 kB / 457.3 MB, free: 11.14 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003048/0.373, allocations: 1.135 MB / 458.4 MB, free: 10.38 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001277/0.3731, allocations: 117.3 kB / 458.5 MB, free: 10.33 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004213/0.3735, allocations: 161.7 kB / 458.7 MB, free: 10.27 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003825/0.3773, allocations: 1.512 MB / 460.2 MB, free: 9.352 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.067e-05/0.3774, allocations: 7.516 kB / 460.2 MB, free: 9.348 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001901/0.3776, allocations: 69.19 kB / 460.3 MB, free: 9.297 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.068e-05/0.3776, allocations: 37.19 kB / 460.3 MB, free: 9.297 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002525/0.3802, allocations: 1.054 MB / 461.4 MB, free: 8.773 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01204/0.3922, allocations: 6.247 MB / 467.6 MB, free: 3.57 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001865/0.3941, allocations: 0.5785 MB / 468.2 MB, free: 3.258 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001092/0.3952, allocations: 423 kB / 468.6 MB, free: 3.059 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.387e-05/0.3952, allocations: 11.33 kB / 468.6 MB, free: 3.055 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.516e-05/0.3953, allocations: 44.12 kB / 468.6 MB, free: 3.008 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 3.357e-06/0.3953, allocations: 4 kB / 468.7 MB, free: 3.004 MB / 366.1 MB Notification: Performance of matching and sorting (n=72): time 0.006655/0.4019, allocations: 2.385 MB / 471 MB, free: 1.461 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001045/0.402, allocations: 115.5 kB / 471.2 MB, free: 1.332 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002864/0.4049, allocations: 1.309 MB / 472.5 MB, free: 0.6016 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.459e-05/0.405, allocations: 37.33 kB / 472.5 MB, free: 0.5625 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008857/0.4059, allocations: 0.8653 MB / 473.4 MB, free: 15.79 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002957/0.4062, allocations: 277.8 kB / 473.6 MB, free: 15.55 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003556/0.4065, allocations: 216.2 kB / 473.8 MB, free: 15.41 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001924/0.4067, allocations: 343.2 kB / 474.2 MB, free: 15.08 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000699/0.4074, allocations: 283.6 kB / 474.5 MB, free: 14.94 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001173/0.4086, allocations: 0.7409 MB / 475.2 MB, free: 14.18 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001821/0.4104, allocations: 1.088 MB / 476.3 MB, free: 13.23 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-05/0.4104, allocations: 3.656 kB / 476.3 MB, free: 13.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002836/0.4133, allocations: 1.261 MB / 477.5 MB, free: 12.57 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.835e-05/0.4133, allocations: 11.47 kB / 477.6 MB, free: 12.57 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.809e-05/0.4133, allocations: 15.75 kB / 477.6 MB, free: 12.57 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005803/0.4139, allocations: 142.3 kB / 477.7 MB, free: 12.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008693/0.4148, allocations: 250 kB / 478 MB, free: 12.45 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004851/0.4196, allocations: 4.64 MB / 482.6 MB, free: 7.777 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001553/0.4212, allocations: 60.88 kB / 482.7 MB, free: 7.746 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001487/0.4213, allocations: 56.98 kB / 482.7 MB, free: 7.734 MB / 382.1 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.0008353/0.4222, allocations: 353.8 kB / 483.1 MB, free: 7.465 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004404/0.4226, allocations: 143 kB / 483.2 MB, free: 7.391 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002166/0.4248, allocations: 0.8216 MB / 484 MB, free: 6.59 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.209e-05/0.4248, allocations: 11.94 kB / 484 MB, free: 6.578 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.608e-06/0.4248, allocations: 0 / 484 MB, free: 6.578 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.648e-06/0.4248, allocations: 3.984 kB / 484 MB, free: 6.574 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005211/0.43, allocations: 2.346 MB / 486.4 MB, free: 4.105 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.901e-06/0.43, allocations: 0 / 486.4 MB, free: 4.105 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006023/0.4306, allocations: 131.3 kB / 486.5 MB, free: 3.98 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005046/0.4311, allocations: 138.8 kB / 486.6 MB, free: 3.836 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.574e-05/0.4312, allocations: 16 kB / 486.7 MB, free: 3.82 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005002/0.4362, allocations: 4.787 MB / 491.4 MB, free: 14.62 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.102e-06/0.4362, allocations: 4 kB / 491.5 MB, free: 14.62 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002908/0.4391, allocations: 1.301 MB / 492.8 MB, free: 13.25 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007938/0.4399, allocations: 300 kB / 493 MB, free: 12.94 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004117/0.4403, allocations: 16.88 kB / 493.1 MB, free: 12.92 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009029/0.4412, allocations: 39.97 kB / 493.1 MB, free: 12.88 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001568/0.4414, allocations: 64.36 kB / 493.2 MB, free: 12.82 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.067e-05/0.4414, allocations: 24 kB / 493.2 MB, free: 12.8 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001594/0.443, allocations: 0.8742 MB / 494.1 MB, free: 11.92 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.443, allocations: 0 / 494.1 MB, free: 11.92 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001666/0.4447, allocations: 335.9 kB / 494.4 MB, free: 11.59 MB / 398.1 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.0002948/0.445, allocations: 143.7 kB / 494.5 MB, free: 11.45 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002251/0.4472, allocations: 1.086 MB / 495.6 MB, free: 10.32 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.611e-06/0.4472, allocations: 4 kB / 495.6 MB, free: 10.31 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001149/0.4484, allocations: 0.6877 MB / 496.3 MB, free: 9.586 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002574/0.4509, allocations: 380 kB / 496.7 MB, free: 9.242 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006661/0.4576, allocations: 2.996 MB / 499.7 MB, free: 6.156 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001286/0.4589, allocations: 1.217 MB / 0.4892 GB, free: 4.91 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003899/0.4593, allocations: 95.42 kB / 0.4892 GB, free: 4.82 MB / 398.1 MB Notification: Performance of SimCode: time 1.363e-06/0.4593, allocations: 0 / 0.4892 GB, free: 4.82 MB / 398.1 MB Notification: Performance of Templates: time 0.05801/0.5173, allocations: 41.2 MB / 0.5295 GB, free: 11.64 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.837585146015044]