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.001689/0.001689, allocations: 107.5 kB / 20.44 MB, free: 1.188 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.001925/0.001925, allocations: 194 kB / 23.71 MB, free: 4.406 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.491/1.491, allocations: 225.7 MB / 252.5 MB, free: 12.79 MB / 206.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: 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 0.001638/0.001638, allocations: 55.91 kB / 370.9 MB, free: 9.172 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2668/0.2684, allocations: 52.19 MB / 423.1 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01362/0.282, allocations: 10.56 MB / 433.6 MB, free: 3.883 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006701/0.2887, allocations: 3.1 MB / 436.7 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001851/0.2906, allocations: 43.81 kB / 436.8 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002397/0.293, allocations: 0.64 MB / 437.4 MB, free: 88 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002958/0.2959, allocations: 0.7872 MB / 438.2 MB, free: 15.29 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001473/0.2974, allocations: 403.5 kB / 438.6 MB, free: 14.9 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003858/0.3013, allocations: 2.419 MB / 441 MB, free: 12.47 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001474/0.3027, allocations: 0.5993 MB / 441.6 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001701/0.3044, allocations: 0.9378 MB / 442.6 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001578/0.306, allocations: 0.8472 MB / 443.4 MB, free: 10.03 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005409/0.3066, allocations: 228 kB / 443.6 MB, free: 9.805 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009703/0.3075, allocations: 268 kB / 443.9 MB, free: 9.543 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006267/0.3082, allocations: 462.3 kB / 444.3 MB, free: 9.09 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00127/0.3094, allocations: 0.875 MB / 445.2 MB, free: 8.211 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003254/0.3127, allocations: 2.856 MB / 448.1 MB, free: 5.344 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.3127, allocations: 0 / 448.1 MB, free: 5.344 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.395e-06/0.3127, allocations: 0 / 448.1 MB, free: 5.344 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.29e-05/0.3127, allocations: 0 / 448.1 MB, free: 5.344 MB / 350.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.003883/0.3166, allocations: 2.129 MB / 450.2 MB, free: 3.172 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.157e-05/0.3167, allocations: 12.02 kB / 450.2 MB, free: 3.16 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009038/0.3176, allocations: 291.5 kB / 450.5 MB, free: 2.875 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002111/0.3197, allocations: 1.055 MB / 451.6 MB, free: 1.777 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.191e-05/0.3198, allocations: 111.5 kB / 451.7 MB, free: 1.668 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002475/0.32, allocations: 163.9 kB / 451.8 MB, free: 1.508 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002757/0.3228, allocations: 1.604 MB / 453.4 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.107e-05/0.3228, allocations: 11.94 kB / 453.4 MB, free: 15.8 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000143/0.323, allocations: 68 kB / 453.5 MB, free: 15.74 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.567e-05/0.323, allocations: 36 kB / 453.5 MB, free: 15.7 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002194/0.3252, allocations: 1.045 MB / 454.6 MB, free: 14.65 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008472/0.3337, allocations: 5.418 MB / 460 MB, free: 8.949 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001529/0.3352, allocations: 0.5695 MB / 460.6 MB, free: 8.371 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009517/0.3362, allocations: 418.6 kB / 461 MB, free: 7.961 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.272e-05/0.3362, allocations: 8.656 kB / 461 MB, free: 7.949 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.917e-05/0.3362, allocations: 47.14 kB / 461 MB, free: 7.895 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 3.246e-06/0.3362, allocations: 0 / 461 MB, free: 7.895 MB / 366.1 MB Notification: Performance of matching and sorting (n=72): time 0.005152/0.3414, allocations: 2.158 MB / 463.2 MB, free: 5.707 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.057e-05/0.3415, allocations: 111.5 kB / 463.3 MB, free: 5.574 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001707/0.3432, allocations: 1.172 MB / 464.5 MB, free: 4.391 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.145e-05/0.3432, allocations: 37.7 kB / 464.5 MB, free: 4.348 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007124/0.3439, allocations: 0.8857 MB / 465.4 MB, free: 3.453 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002157/0.3442, allocations: 269.7 kB / 465.7 MB, free: 3.188 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002871/0.3444, allocations: 202.8 kB / 465.9 MB, free: 2.984 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001719/0.3446, allocations: 361.9 kB / 466.2 MB, free: 2.625 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006015/0.3452, allocations: 278.5 kB / 466.5 MB, free: 2.352 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001003/0.3462, allocations: 0.7926 MB / 467.3 MB, free: 1.332 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001668/0.3479, allocations: 1.088 MB / 468.4 MB, free: 36 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.834e-06/0.3479, allocations: 4 kB / 468.4 MB, free: 32 kB / 366.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002572/0.3505, allocations: 1.249 MB / 469.6 MB, free: 14.76 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.669e-05/0.3505, allocations: 12 kB / 469.6 MB, free: 14.75 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.824e-05/0.3505, allocations: 12 kB / 469.6 MB, free: 14.74 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005375/0.351, allocations: 142.9 kB / 469.8 MB, free: 14.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008833/0.3519, allocations: 259.6 kB / 470 MB, free: 14.34 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00416/0.3561, allocations: 4.249 MB / 474.3 MB, free: 9.781 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00109/0.3572, allocations: 55.94 kB / 474.3 MB, free: 9.727 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.965e-05/0.3573, allocations: 59.98 kB / 474.4 MB, free: 9.668 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.0006363/0.3579, allocations: 365.4 kB / 474.8 MB, free: 9.301 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001958/0.3581, allocations: 135 kB / 474.9 MB, free: 9.172 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001865/0.36, allocations: 0.8165 MB / 475.7 MB, free: 8.336 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.342e-06/0.36, allocations: 4 kB / 475.7 MB, free: 8.332 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.76e-06/0.36, allocations: 4 kB / 475.7 MB, free: 8.328 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.905e-06/0.36, allocations: 3.984 kB / 475.7 MB, free: 8.324 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003886/0.3639, allocations: 1.957 MB / 477.7 MB, free: 6.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.413e-06/0.3639, allocations: 4 kB / 477.7 MB, free: 6.266 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005884/0.3645, allocations: 127.8 kB / 477.8 MB, free: 6.141 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004485/0.3649, allocations: 135 kB / 477.9 MB, free: 6 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.444e-05/0.365, allocations: 16 kB / 477.9 MB, free: 5.984 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004522/0.3695, allocations: 4.4 MB / 482.3 MB, free: 1.277 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.053e-06/0.3695, allocations: 4 kB / 482.3 MB, free: 1.273 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002667/0.3721, allocations: 1.296 MB / 483.6 MB, free: 15.91 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005658/0.3727, allocations: 191.1 kB / 483.8 MB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00019/0.3729, allocations: 16.14 kB / 483.8 MB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006472/0.3736, allocations: 39.97 kB / 483.9 MB, free: 15.67 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000168/0.3737, allocations: 68.25 kB / 484 MB, free: 15.6 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.274e-05/0.3738, allocations: 24 kB / 484 MB, free: 15.57 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001258/0.375, allocations: 0.7685 MB / 484.7 MB, free: 14.8 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.375, allocations: 0 / 484.7 MB, free: 14.8 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001377/0.3764, allocations: 336 kB / 485.1 MB, free: 14.47 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.0002671/0.3767, allocations: 127.1 kB / 485.2 MB, free: 14.34 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002067/0.3787, allocations: 1.089 MB / 486.3 MB, free: 13.22 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.563e-06/0.3787, allocations: 4 kB / 486.3 MB, free: 13.21 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001099/0.3798, allocations: 0.6988 MB / 487 MB, free: 12.48 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001561/0.3814, allocations: 333.5 kB / 487.3 MB, free: 12.16 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005765/0.3872, allocations: 2.945 MB / 490.3 MB, free: 9.137 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007953/0.388, allocations: 0.6298 MB / 490.9 MB, free: 8.473 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006735/0.3886, allocations: 162.8 kB / 491 MB, free: 8.309 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00026/0.3889, allocations: 83.42 kB / 491.1 MB, free: 8.23 MB / 398.1 MB Notification: Performance of SimCode: time 6.91e-07/0.3889, allocations: 0 / 491.1 MB, free: 8.23 MB / 398.1 MB Notification: Performance of Templates: time 0.03655/0.4254, allocations: 19.6 MB / 0.4988 GB, free: 4.953 MB / 414.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 5.424715435132384]