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.001312/0.001312, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001376/0.001376, allocations: 211 kB / 23.73 MB, free: 4.523 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.598/1.598, allocations: 230.6 MB / 257.5 MB, free: 7.805 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.001591/0.001591, allocations: 47.92 kB / 378.2 MB, free: 2.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3063/0.3079, allocations: 53.35 MB / 431.6 MB, free: 6.707 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01379/0.3217, allocations: 10.57 MB / 442.2 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007/0.3287, allocations: 3.139 MB / 445.3 MB, free: 8.941 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001937/0.3306, allocations: 43.81 kB / 445.3 MB, free: 8.898 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002186/0.3328, allocations: 0.6323 MB / 446 MB, free: 8.262 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002921/0.3357, allocations: 0.7911 MB / 446.8 MB, free: 7.465 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001198/0.3369, allocations: 403.5 kB / 447.2 MB, free: 7.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003745/0.3407, allocations: 2.42 MB / 449.6 MB, free: 4.645 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001204/0.3419, allocations: 0.6539 MB / 450.2 MB, free: 3.938 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001738/0.3436, allocations: 0.9378 MB / 451.2 MB, free: 2.996 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001603/0.3452, allocations: 0.9839 MB / 452.1 MB, free: 2.008 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003036/0.3455, allocations: 232 kB / 452.4 MB, free: 1.781 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005219/0.346, allocations: 260 kB / 452.6 MB, free: 1.527 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003858/0.3464, allocations: 462.3 kB / 453.1 MB, free: 1.074 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001002/0.3474, allocations: 0.8711 MB / 453.9 MB, free: 204 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003276/0.3507, allocations: 2.864 MB / 456.8 MB, free: 13.32 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.3507, allocations: 4 kB / 456.8 MB, free: 13.32 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3507, allocations: 0 / 456.8 MB, free: 13.32 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.116e-05/0.3508, allocations: 0 / 456.8 MB, free: 13.32 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.004385/0.3552, allocations: 2.137 MB / 459 MB, free: 11.14 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.707e-05/0.3552, allocations: 12.03 kB / 459 MB, free: 11.13 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009868/0.3562, allocations: 295.5 kB / 459.3 MB, free: 10.84 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00207/0.3583, allocations: 1.044 MB / 460.3 MB, free: 9.754 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001138/0.3584, allocations: 119.5 kB / 460.4 MB, free: 9.637 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000256/0.3586, allocations: 171.8 kB / 460.6 MB, free: 9.469 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003124/0.3618, allocations: 1.608 MB / 462.2 MB, free: 7.773 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.826e-05/0.3618, allocations: 4 kB / 462.2 MB, free: 7.77 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001401/0.362, allocations: 60 kB / 462.3 MB, free: 7.711 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.231e-05/0.362, allocations: 40 kB / 462.3 MB, free: 7.672 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002184/0.3642, allocations: 1.049 MB / 463.3 MB, free: 6.617 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008899/0.3731, allocations: 5.399 MB / 468.7 MB, free: 0.9336 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001609/0.3747, allocations: 0.57 MB / 469.3 MB, free: 364 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009239/0.3756, allocations: 426.5 kB / 469.7 MB, free: 15.94 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.816e-05/0.3757, allocations: 12.66 kB / 469.7 MB, free: 15.92 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.346e-05/0.3757, allocations: 43.16 kB / 469.8 MB, free: 15.87 MB / 382.1 MB Notification: Performance of pre-optimization done (n=66): time 2.555e-06/0.3757, allocations: 0 / 469.8 MB, free: 15.87 MB / 382.1 MB Notification: Performance of matching and sorting (n=72): time 0.005158/0.3809, allocations: 2.158 MB / 471.9 MB, free: 13.68 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.002e-05/0.3809, allocations: 111.5 kB / 472 MB, free: 13.55 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00169/0.3826, allocations: 1.18 MB / 473.2 MB, free: 12.36 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.564e-05/0.3827, allocations: 33.7 kB / 473.3 MB, free: 12.32 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006738/0.3834, allocations: 0.8818 MB / 474.1 MB, free: 11.43 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002218/0.3836, allocations: 269.7 kB / 474.4 MB, free: 11.16 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003006/0.3839, allocations: 206.8 kB / 474.6 MB, free: 10.95 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001694/0.3841, allocations: 353.9 kB / 475 MB, free: 10.6 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000607/0.3847, allocations: 286.5 kB / 475.2 MB, free: 10.32 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001014/0.3857, allocations: 0.7926 MB / 476 MB, free: 9.301 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001637/0.3873, allocations: 1.088 MB / 477.1 MB, free: 8.008 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.685e-06/0.3873, allocations: 4 kB / 477.1 MB, free: 8.004 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002551/0.3899, allocations: 1.249 MB / 478.4 MB, free: 6.738 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.395e-05/0.3899, allocations: 12 kB / 478.4 MB, free: 6.727 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.981e-05/0.3899, allocations: 16 kB / 478.4 MB, free: 6.711 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005248/0.3904, allocations: 138.9 kB / 478.5 MB, free: 6.566 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008954/0.3913, allocations: 259.5 kB / 478.8 MB, free: 6.312 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004115/0.3954, allocations: 4.24 MB / 483 MB, free: 1.766 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001071/0.3965, allocations: 55.97 kB / 483.1 MB, free: 1.711 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.908e-05/0.3966, allocations: 63.97 kB / 483.1 MB, free: 1.648 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.0006097/0.3972, allocations: 361.6 kB / 483.5 MB, free: 1.285 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002014/0.3974, allocations: 135.1 kB / 483.6 MB, free: 1.152 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001966/0.3994, allocations: 0.8203 MB / 484.4 MB, free: 320 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.115e-06/0.3994, allocations: 8 kB / 484.5 MB, free: 312 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.3994, allocations: 0 / 484.5 MB, free: 312 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.758e-06/0.3994, allocations: 3.984 kB / 484.5 MB, free: 308 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003944/0.4033, allocations: 1.969 MB / 486.4 MB, free: 14.24 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.045e-06/0.4034, allocations: 4 kB / 486.4 MB, free: 14.23 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000652/0.404, allocations: 127.8 kB / 486.6 MB, free: 14.11 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005062/0.4045, allocations: 131 kB / 486.7 MB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.112e-05/0.4046, allocations: 20 kB / 486.7 MB, free: 13.95 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004794/0.4094, allocations: 4.396 MB / 491.1 MB, free: 9.25 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.95e-06/0.4094, allocations: 4 kB / 491.1 MB, free: 9.246 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002674/0.412, allocations: 1.285 MB / 492.4 MB, free: 7.891 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005405/0.4126, allocations: 195.1 kB / 492.6 MB, free: 7.699 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001502/0.4127, allocations: 23.98 kB / 492.6 MB, free: 7.676 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006713/0.4134, allocations: 35.97 kB / 492.6 MB, free: 7.641 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001251/0.4135, allocations: 68.28 kB / 492.7 MB, free: 7.574 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.636e-05/0.4136, allocations: 23.98 kB / 492.7 MB, free: 7.551 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001359/0.4149, allocations: 0.7724 MB / 493.5 MB, free: 6.773 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4149, allocations: 3.938 kB / 493.5 MB, free: 6.77 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001228/0.4162, allocations: 324 kB / 493.8 MB, free: 6.453 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.0002177/0.4164, allocations: 139 kB / 494 MB, free: 6.309 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001933/0.4183, allocations: 1.084 MB / 495 MB, free: 5.188 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.4183, allocations: 0 / 495 MB, free: 5.188 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001051/0.4194, allocations: 0.6849 MB / 495.7 MB, free: 4.469 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001639/0.421, allocations: 338.7 kB / 496.1 MB, free: 4.152 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005784/0.4268, allocations: 2.949 MB / 499 MB, free: 1.117 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007579/0.4275, allocations: 0.6337 MB / 499.6 MB, free: 460 kB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006997/0.4282, allocations: 154.8 kB / 499.8 MB, free: 300 kB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002182/0.4285, allocations: 83.42 kB / 499.9 MB, free: 220 kB / 398.1 MB Notification: Performance of SimCode: time 9.62e-07/0.4285, allocations: 0 / 499.9 MB, free: 220 kB / 398.1 MB Notification: Performance of Templates: time 0.03797/0.4664, allocations: 20 MB / 0.5077 GB, free: 12.55 MB / 430.1 MB " [Timeout remaining time 660] 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins/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: 5.4903428591787815]