Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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.0009934/0.0009934, allocations: 85.91 kB / 22.22 MB, free: 2.285 MB / 18.57 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.0009956/0.0009956, allocations: 167.4 kB / 25.61 MB, free: 8.578 MB / 18.57 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.9901/0.9901, allocations: 177 MB / 205.9 MB, free: 4.426 MB / 186.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.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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.422e-06/1.422e-06, allocations: 0 / 274.1 MB, free: 4.355 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.241e-05/2.383e-05, allocations: 4.719 kB / 274.1 MB, free: 4.352 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01025/0.01028, allocations: 11.74 MB / 285.9 MB, free: 8.562 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004983/0.01526, allocations: 3.247 MB / 289.1 MB, free: 5.312 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001141/0.0164, allocations: 43.81 kB / 289.2 MB, free: 5.27 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001313/0.01771, allocations: 0.6438 MB / 289.8 MB, free: 4.621 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001541/0.01926, allocations: 0.8334 MB / 290.6 MB, free: 3.781 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006184/0.01987, allocations: 391.5 kB / 291 MB, free: 3.398 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002374/0.02225, allocations: 2.509 MB / 293.5 MB, free: 0.8789 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007736/0.02302, allocations: 0.6109 MB / 294.1 MB, free: 220 kB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001677/0.0247, allocations: 1.43 MB / 295.6 MB, free: 14.78 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009073/0.02561, allocations: 0.7673 MB / 296.3 MB, free: 14.01 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002837/0.02589, allocations: 224 kB / 296.6 MB, free: 13.79 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003475/0.02624, allocations: 264 kB / 296.8 MB, free: 13.54 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002356/0.02647, allocations: 462.2 kB / 297.3 MB, free: 13.08 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005532/0.02703, allocations: 0.7327 MB / 298 MB, free: 12.35 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001223/0.02825, allocations: 1.487 MB / 299.5 MB, free: 10.86 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.775e-06/0.02825, allocations: 4 kB / 299.5 MB, free: 10.85 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.01e-07/0.02825, allocations: 0 / 299.5 MB, free: 10.85 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.811e-05/0.02827, allocations: 0 / 299.5 MB, free: 10.85 MB / 282.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.002393/0.03066, allocations: 2.254 MB / 301.7 MB, free: 8.547 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.444e-05/0.0307, allocations: 12.03 kB / 301.8 MB, free: 8.535 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005875/0.03129, allocations: 407.5 kB / 302.2 MB, free: 8.137 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001003/0.03229, allocations: 1.007 MB / 303.2 MB, free: 7.082 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.114e-05/0.03235, allocations: 115.5 kB / 303.3 MB, free: 6.969 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001417/0.03249, allocations: 156.3 kB / 303.4 MB, free: 6.816 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001146/0.03364, allocations: 1.183 MB / 304.6 MB, free: 5.531 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.629e-05/0.03367, allocations: 11.94 kB / 304.6 MB, free: 5.52 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.951e-05/0.03375, allocations: 64 kB / 304.7 MB, free: 5.457 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.199e-05/0.03378, allocations: 40 kB / 304.7 MB, free: 5.418 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005529/0.03433, allocations: 458.6 kB / 305.2 MB, free: 4.961 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004802/0.03913, allocations: 5.954 MB / 311.1 MB, free: 14.71 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006265/0.03976, allocations: 395.9 kB / 311.5 MB, free: 14.31 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003495/0.04011, allocations: 265.4 kB / 311.8 MB, free: 14.05 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.267e-05/0.04014, allocations: 20.64 kB / 311.8 MB, free: 14.02 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.399e-05/0.04016, allocations: 42.05 kB / 311.8 MB, free: 13.97 MB / 298.7 MB Notification: Performance of pre-optimization done (n=66): time 3.056e-06/0.04017, allocations: 0 / 311.8 MB, free: 13.97 MB / 298.7 MB Notification: Performance of matching and sorting (n=72): time 0.002023/0.04219, allocations: 1.337 MB / 313.2 MB, free: 12.6 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.473e-05/0.04223, allocations: 111.5 kB / 313.3 MB, free: 12.46 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008555/0.04309, allocations: 1.094 MB / 314.4 MB, free: 11.36 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.171e-05/0.04312, allocations: 37.7 kB / 314.4 MB, free: 11.32 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004431/0.04356, allocations: 0.9664 MB / 315.4 MB, free: 10.34 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001328/0.0437, allocations: 273.6 kB / 315.6 MB, free: 10.07 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001789/0.04388, allocations: 216.4 kB / 315.9 MB, free: 9.848 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001238/0.044, allocations: 0.5276 MB / 316.4 MB, free: 9.312 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001309/0.04413, allocations: 110.5 kB / 316.5 MB, free: 9.207 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004159/0.04455, allocations: 0.8179 MB / 317.3 MB, free: 8.078 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006327/0.04518, allocations: 0.9676 MB / 318.3 MB, free: 6.824 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.639e-06/0.04518, allocations: 7.938 kB / 318.3 MB, free: 6.816 MB / 298.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.0009675/0.04615, allocations: 0.9368 MB / 319.2 MB, free: 5.859 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.08e-05/0.04617, allocations: 15.98 kB / 319.2 MB, free: 5.844 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.369e-05/0.04619, allocations: 12 kB / 319.2 MB, free: 5.832 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003289/0.04651, allocations: 143.4 kB / 319.4 MB, free: 5.68 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004455/0.04696, allocations: 255.6 kB / 319.6 MB, free: 5.43 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002459/0.04942, allocations: 5.545 MB / 325.2 MB, free: 15.55 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004608/0.04988, allocations: 51.94 kB / 325.2 MB, free: 15.5 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.565e-05/0.04993, allocations: 51.97 kB / 325.3 MB, free: 15.45 MB / 314.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.000264/0.05019, allocations: 232.3 kB / 325.5 MB, free: 15.21 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001373/0.05033, allocations: 155.1 kB / 325.7 MB, free: 15.05 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006471/0.05097, allocations: 0.5436 MB / 326.2 MB, free: 14.49 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.781e-06/0.05098, allocations: 8 kB / 326.2 MB, free: 14.48 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.916e-06/0.05098, allocations: 0 / 326.2 MB, free: 14.48 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/0.05099, allocations: 7.984 kB / 326.2 MB, free: 14.47 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001841/0.05283, allocations: 1.595 MB / 327.8 MB, free: 12.77 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.05283, allocations: 4 kB / 327.8 MB, free: 12.77 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002861/0.05312, allocations: 123.8 kB / 327.9 MB, free: 12.64 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003181/0.05344, allocations: 151.3 kB / 328.1 MB, free: 12.48 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.62e-05/0.05346, allocations: 19.94 kB / 328.1 MB, free: 12.46 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002119/0.05558, allocations: 5.605 MB / 333.7 MB, free: 6.523 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.05559, allocations: 4 kB / 333.7 MB, free: 6.52 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008556/0.05644, allocations: 0.9684 MB / 334.7 MB, free: 5.453 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003451/0.05679, allocations: 191.1 kB / 334.9 MB, free: 5.266 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.434e-05/0.05687, allocations: 19.98 kB / 334.9 MB, free: 5.246 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002774/0.05715, allocations: 36.12 kB / 334.9 MB, free: 5.211 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.852e-05/0.05723, allocations: 72.25 kB / 335 MB, free: 5.141 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.337e-05/0.05725, allocations: 16 kB / 335 MB, free: 5.125 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004236/0.05767, allocations: 0.6119 MB / 335.6 MB, free: 4.508 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.05767, allocations: 0 / 335.6 MB, free: 4.508 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007759/0.05845, allocations: 324 kB / 335.9 MB, free: 4.191 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.0001734/0.05862, allocations: 146.7 kB / 336.1 MB, free: 4.039 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007817/0.0594, allocations: 1.01 MB / 337.1 MB, free: 2.98 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.05941, allocations: 320 / 337.1 MB, free: 2.98 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004181/0.05983, allocations: 0.7352 MB / 337.8 MB, free: 2.191 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008531/0.06068, allocations: 356 kB / 338.2 MB, free: 1.867 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003/0.06368, allocations: 2.701 MB / 340.9 MB, free: 15.05 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001747/0.06385, allocations: 245 kB / 341.1 MB, free: 14.79 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0003453/0.0642, allocations: 158.8 kB / 341.3 MB, free: 14.62 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005081/0.06471, allocations: 394 kB / 341.7 MB, free: 14.24 MB / 330.7 MB Notification: Performance of SimCode: time 7.71e-07/0.06471, allocations: 3.938 kB / 341.7 MB, free: 14.23 MB / 330.7 MB Notification: Performance of Templates: time 0.1282/0.1929, allocations: 19.09 MB / 360.8 MB, free: 74.62 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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","",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.5604011276736856]