Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.0009966/0.0009966, allocations: 85.08 kB / 23 MB, free: 1.504 MB / 18.57 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.001035/0.001035, allocations: 173.1 kB / 26.39 MB, free: 8 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8502/0.8502, allocations: 158.6 MB / 188.3 MB, free: 2.816 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.342e-06/1.342e-06, allocations: 3.938 kB / 252.3 MB, free: 7.227 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.537e-05/1.671e-05, allocations: 2.312 kB / 252.3 MB, free: 7.223 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.008503/0.008519, allocations: 11.7 MB / 264 MB, free: 11.47 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003672/0.01219, allocations: 3.239 MB / 267.2 MB, free: 8.215 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005073/0.0127, allocations: 43.81 kB / 267.3 MB, free: 8.172 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009818/0.01368, allocations: 0.6478 MB / 267.9 MB, free: 7.52 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008948/0.01458, allocations: 0.8217 MB / 268.7 MB, free: 6.691 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004214/0.015, allocations: 411.5 kB / 269.1 MB, free: 6.289 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001463/0.01646, allocations: 2.509 MB / 271.6 MB, free: 3.766 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006286/0.01709, allocations: 0.5992 MB / 272.2 MB, free: 3.121 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001005/0.01809, allocations: 1.419 MB / 273.7 MB, free: 1.699 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006253/0.01872, allocations: 0.7635 MB / 274.4 MB, free: 0.9336 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001718/0.01889, allocations: 224 kB / 274.6 MB, free: 0.7148 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002717/0.01916, allocations: 271.9 kB / 274.9 MB, free: 460 kB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002325/0.01939, allocations: 466.2 kB / 275.4 MB, free: 15.99 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004825/0.01988, allocations: 0.7404 MB / 276.1 MB, free: 15.25 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001095/0.02097, allocations: 1.475 MB / 277.6 MB, free: 13.77 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.935e-06/0.02098, allocations: 0 / 277.6 MB, free: 13.77 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.72e-07/0.02098, allocations: 0 / 277.6 MB, free: 13.77 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.148e-05/0.02099, allocations: 0 / 277.6 MB, free: 13.77 MB / 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.002096/0.02308, allocations: 2.258 MB / 279.8 MB, free: 11.46 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.15e-05/0.02311, allocations: 8.031 kB / 279.8 MB, free: 11.45 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005545/0.02367, allocations: 415.5 kB / 280.2 MB, free: 11.05 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009706/0.02464, allocations: 1.011 MB / 281.3 MB, free: 9.988 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.955e-05/0.0247, allocations: 115.5 kB / 281.4 MB, free: 9.875 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001429/0.02484, allocations: 164.3 kB / 281.5 MB, free: 9.715 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001071/0.02591, allocations: 1.179 MB / 282.7 MB, free: 8.434 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.659e-05/0.02595, allocations: 11.94 kB / 282.7 MB, free: 8.422 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.62e-05/0.02603, allocations: 64 kB / 282.8 MB, free: 8.359 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.53e-05/0.02605, allocations: 40 kB / 282.8 MB, free: 8.32 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005473/0.0266, allocations: 458.6 kB / 283.3 MB, free: 7.863 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004404/0.031, allocations: 5.95 MB / 289.2 MB, free: 1.613 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006173/0.03162, allocations: 387.9 kB / 289.6 MB, free: 1.223 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003474/0.03197, allocations: 269.4 kB / 289.9 MB, free: 0.957 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.293e-05/0.032, allocations: 8.656 kB / 289.9 MB, free: 0.9492 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.486e-05/0.03203, allocations: 46.05 kB / 289.9 MB, free: 0.8945 MB / 266.7 MB Notification: Performance of pre-optimization done (n=66): time 1.813e-06/0.03203, allocations: 4 kB / 289.9 MB, free: 0.8906 MB / 266.7 MB Notification: Performance of matching and sorting (n=72): time 0.001731/0.03376, allocations: 1.333 MB / 291.3 MB, free: 15.51 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.398e-05/0.0338, allocations: 115.5 kB / 291.4 MB, free: 15.38 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007869/0.03459, allocations: 1.102 MB / 292.5 MB, free: 14.26 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.018e-05/0.03462, allocations: 41.53 kB / 292.5 MB, free: 14.22 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004325/0.03505, allocations: 0.9625 MB / 293.5 MB, free: 13.25 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001298/0.03518, allocations: 273.7 kB / 293.7 MB, free: 12.98 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001713/0.03535, allocations: 208.4 kB / 293.9 MB, free: 12.76 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001504/0.0355, allocations: 0.5315 MB / 294.5 MB, free: 12.22 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001288/0.03563, allocations: 106.5 kB / 294.6 MB, free: 12.12 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004184/0.03605, allocations: 0.8179 MB / 295.4 MB, free: 10.99 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006174/0.03667, allocations: 0.9636 MB / 296.4 MB, free: 9.746 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.889e-06/0.03667, allocations: 8 kB / 296.4 MB, free: 9.738 MB / 282.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.0009513/0.03762, allocations: 0.9449 MB / 297.3 MB, free: 8.773 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.729e-05/0.03764, allocations: 8 kB / 297.3 MB, free: 8.766 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.348e-05/0.03765, allocations: 16 kB / 297.3 MB, free: 8.75 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003152/0.03797, allocations: 139.2 kB / 297.5 MB, free: 8.602 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004299/0.0384, allocations: 251.6 kB / 297.7 MB, free: 8.355 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002245/0.04064, allocations: 5.552 MB / 303.3 MB, free: 2.465 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003646/0.04101, allocations: 51.94 kB / 303.3 MB, free: 2.414 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.46e-05/0.04105, allocations: 47.98 kB / 303.4 MB, free: 2.367 MB / 282.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.0002286/0.04128, allocations: 236.1 kB / 303.6 MB, free: 2.125 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001383/0.04142, allocations: 155.2 kB / 303.7 MB, free: 1.973 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006131/0.04203, allocations: 0.5397 MB / 304.3 MB, free: 1.402 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.58e-06/0.04204, allocations: 8 kB / 304.3 MB, free: 1.395 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.134e-06/0.04204, allocations: 0 / 304.3 MB, free: 1.395 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.04205, allocations: 3.984 kB / 304.3 MB, free: 1.391 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001634/0.04368, allocations: 1.6 MB / 305.9 MB, free: 15.68 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.04369, allocations: 4 kB / 305.9 MB, free: 15.67 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002843/0.04397, allocations: 115.9 kB / 306 MB, free: 15.56 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000308/0.04428, allocations: 163 kB / 306.2 MB, free: 15.39 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.83e-05/0.04431, allocations: 27.92 kB / 306.2 MB, free: 15.36 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002261/0.04657, allocations: 5.607 MB / 311.8 MB, free: 9.414 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-06/0.04657, allocations: 7.984 kB / 311.8 MB, free: 9.406 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008356/0.04741, allocations: 0.9567 MB / 312.8 MB, free: 8.359 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002342/0.04764, allocations: 199 kB / 313 MB, free: 8.164 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.876e-05/0.04773, allocations: 23.81 kB / 313 MB, free: 8.145 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002701/0.048, allocations: 27.98 kB / 313 MB, free: 8.117 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.522e-05/0.04807, allocations: 68.27 kB / 313.1 MB, free: 8.051 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.64e-05/0.0481, allocations: 20 kB / 313.1 MB, free: 8.031 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004527/0.04855, allocations: 0.6197 MB / 313.7 MB, free: 7.406 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.1e-08/0.04855, allocations: 0 / 313.7 MB, free: 7.406 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006721/0.04923, allocations: 328 kB / 314 MB, free: 7.086 MB / 298.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.0002068/0.04943, allocations: 127.1 kB / 314.2 MB, free: 6.949 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008181/0.05025, allocations: 1.005 MB / 315.2 MB, free: 5.891 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.05025, allocations: 1.938 kB / 315.2 MB, free: 5.891 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004192/0.05067, allocations: 0.7362 MB / 315.9 MB, free: 5.098 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008414/0.05151, allocations: 356 kB / 316.3 MB, free: 4.762 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002978/0.05449, allocations: 2.694 MB / 319 MB, free: 1.953 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001676/0.05466, allocations: 245 kB / 319.2 MB, free: 1.691 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0003256/0.05498, allocations: 162.8 kB / 319.4 MB, free: 1.527 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004851/0.05547, allocations: 394 kB / 319.7 MB, free: 1.141 MB / 298.7 MB Notification: Performance of SimCode: time 7.52e-07/0.05547, allocations: 0 / 319.7 MB, free: 1.141 MB / 298.7 MB Notification: Performance of Templates: time 0.02382/0.07929, allocations: 19.11 MB / 338.8 MB, free: 14.04 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.4560570917092264]