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.0008816/0.0008816, allocations: 80.8 kB / 22.28 MB, free: 2.207 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.0009375/0.0009375, allocations: 164.7 kB / 25.7 MB, free: 8.391 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.8701/0.8701, allocations: 158.6 MB / 187.6 MB, free: 2.777 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.112e-06/1.112e-06, allocations: 0 / 251.5 MB, free: 7.262 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.502e-05/1.613e-05, allocations: 6.25 kB / 251.5 MB, free: 7.254 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.008901/0.008917, allocations: 11.7 MB / 263.2 MB, free: 11.5 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.005005/0.01392, allocations: 3.378 MB / 266.6 MB, free: 8.102 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006064/0.01453, allocations: 43.81 kB / 266.7 MB, free: 8.059 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001011/0.01554, allocations: 0.6632 MB / 267.3 MB, free: 7.391 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009648/0.0165, allocations: 0.8178 MB / 268.1 MB, free: 6.566 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004445/0.01695, allocations: 407.4 kB / 268.5 MB, free: 6.168 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001418/0.01837, allocations: 2.513 MB / 271.1 MB, free: 3.645 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006121/0.01898, allocations: 0.6305 MB / 271.7 MB, free: 2.953 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001002/0.01998, allocations: 1.411 MB / 273.1 MB, free: 1.539 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008042/0.02078, allocations: 0.779 MB / 273.9 MB, free: 0.7578 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001617/0.02095, allocations: 224 kB / 274.1 MB, free: 0.5391 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002504/0.0212, allocations: 264 kB / 274.4 MB, free: 288 kB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002185/0.02142, allocations: 466.2 kB / 274.8 MB, free: 15.82 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004571/0.02187, allocations: 0.7404 MB / 275.6 MB, free: 15.08 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001017/0.02289, allocations: 1.479 MB / 277 MB, free: 13.6 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.715e-06/0.02289, allocations: 0 / 277 MB, free: 13.6 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.32e-07/0.02289, allocations: 0 / 277 MB, free: 13.6 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.015e-05/0.0229, allocations: 0 / 277 MB, free: 13.6 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.001772/0.02468, allocations: 2.073 MB / 279.1 MB, free: 11.49 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.988e-05/0.0247, allocations: 12.03 kB / 279.1 MB, free: 11.48 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004792/0.02518, allocations: 348.6 kB / 279.5 MB, free: 11.14 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008579/0.02604, allocations: 0.8007 MB / 280.3 MB, free: 10.29 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.329e-05/0.0261, allocations: 111.5 kB / 280.4 MB, free: 10.18 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000122/0.02622, allocations: 160.3 kB / 280.5 MB, free: 10.02 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001036/0.02725, allocations: 1.171 MB / 281.7 MB, free: 8.766 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.363e-05/0.02729, allocations: 15.88 kB / 281.7 MB, free: 8.75 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.193e-05/0.02735, allocations: 67.94 kB / 281.8 MB, free: 8.684 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.843e-05/0.02737, allocations: 40 kB / 281.8 MB, free: 8.645 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004514/0.02782, allocations: 390.9 kB / 282.2 MB, free: 8.254 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003563/0.03138, allocations: 4.711 MB / 286.9 MB, free: 3.262 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005031/0.03188, allocations: 355.7 kB / 287.3 MB, free: 2.906 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002943/0.03218, allocations: 254.6 kB / 287.5 MB, free: 2.656 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.937e-05/0.03221, allocations: 12.66 kB / 287.5 MB, free: 2.645 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001503/0.03236, allocations: 43.22 kB / 287.6 MB, free: 2.594 MB / 266.7 MB Notification: Performance of pre-optimization done (n=66): time 1.914e-06/0.03236, allocations: 0 / 287.6 MB, free: 2.594 MB / 266.7 MB Notification: Performance of matching and sorting (n=72): time 0.001537/0.0339, allocations: 1.235 MB / 288.8 MB, free: 1.328 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.804e-05/0.03394, allocations: 111.4 kB / 288.9 MB, free: 1.195 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006662/0.0346, allocations: 1.009 MB / 289.9 MB, free: 180 kB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.806e-05/0.03463, allocations: 37.7 kB / 289.9 MB, free: 136 kB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000285/0.03491, allocations: 0.7313 MB / 290.7 MB, free: 15.39 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001167/0.03503, allocations: 269.7 kB / 290.9 MB, free: 15.12 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001537/0.03519, allocations: 214.7 kB / 291.1 MB, free: 14.91 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.028e-05/0.03527, allocations: 353.9 kB / 291.5 MB, free: 14.55 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001085/0.03537, allocations: 98.56 kB / 291.6 MB, free: 14.46 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003186/0.03569, allocations: 0.6129 MB / 292.2 MB, free: 13.62 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005074/0.0362, allocations: 0.7796 MB / 293 MB, free: 12.63 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/0.0362, allocations: 4 kB / 293 MB, free: 12.62 MB / 282.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.000716/0.03692, allocations: 0.7612 MB / 293.7 MB, free: 11.85 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.736e-05/0.03694, allocations: 12 kB / 293.8 MB, free: 11.84 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.251e-05/0.03695, allocations: 15.98 kB / 293.8 MB, free: 11.82 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003174/0.03727, allocations: 154.7 kB / 293.9 MB, free: 11.66 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004085/0.03768, allocations: 255.6 kB / 294.2 MB, free: 11.41 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001778/0.03945, allocations: 3.778 MB / 298 MB, free: 7.375 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003266/0.03978, allocations: 43.98 kB / 298 MB, free: 7.332 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.538e-05/0.03983, allocations: 51.94 kB / 298 MB, free: 7.281 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.0001964/0.04002, allocations: 197.4 kB / 298.2 MB, free: 7.078 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.63e-05/0.04012, allocations: 99.89 kB / 298.3 MB, free: 6.98 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004938/0.04061, allocations: 468.2 kB / 298.8 MB, free: 6.496 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.957e-06/0.04062, allocations: 8 kB / 298.8 MB, free: 6.488 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.04062, allocations: 7.938 kB / 298.8 MB, free: 6.48 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.04063, allocations: 3.984 kB / 298.8 MB, free: 6.477 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001291/0.04192, allocations: 1.215 MB / 300 MB, free: 5.18 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.99e-06/0.04192, allocations: 8 kB / 300 MB, free: 5.172 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002633/0.04219, allocations: 123.8 kB / 300.2 MB, free: 5.051 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003254/0.04251, allocations: 182.7 kB / 300.3 MB, free: 4.863 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.407e-05/0.04254, allocations: 16 kB / 300.4 MB, free: 4.848 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001864/0.0444, allocations: 3.841 MB / 304.2 MB, free: 0.75 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/0.0444, allocations: 7.984 kB / 304.2 MB, free: 0.7422 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006523/0.04506, allocations: 0.7306 MB / 304.9 MB, free: 15.95 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000194/0.04525, allocations: 127 kB / 305.1 MB, free: 15.82 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.525e-05/0.04534, allocations: 20 kB / 305.1 MB, free: 15.8 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002458/0.04558, allocations: 35.98 kB / 305.1 MB, free: 15.77 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.371e-05/0.04565, allocations: 64.33 kB / 305.2 MB, free: 15.7 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.107e-05/0.04568, allocations: 23.92 kB / 305.2 MB, free: 15.68 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003412/0.04602, allocations: 470 kB / 305.7 MB, free: 15.21 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.04602, allocations: 0 / 305.7 MB, free: 15.21 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006255/0.04664, allocations: 328 kB / 306 MB, free: 14.89 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.0001567/0.0468, allocations: 116.2 kB / 306.1 MB, free: 14.77 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006565/0.04746, allocations: 0.8111 MB / 306.9 MB, free: 13.92 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.259e-05/0.04748, allocations: 25.94 kB / 306.9 MB, free: 13.9 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003453/0.04782, allocations: 0.5512 MB / 307.5 MB, free: 13.3 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007457/0.04857, allocations: 345.5 kB / 307.8 MB, free: 12.97 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00302/0.05159, allocations: 2.553 MB / 310.4 MB, free: 10.33 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001585/0.05175, allocations: 253 kB / 310.6 MB, free: 10.05 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0003099/0.05206, allocations: 154.8 kB / 310.8 MB, free: 9.898 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004633/0.05252, allocations: 345.1 kB / 311.1 MB, free: 9.562 MB / 298.7 MB Notification: Performance of SimCode: time 8.42e-07/0.05252, allocations: 4 kB / 311.1 MB, free: 9.559 MB / 298.7 MB Notification: Performance of Templates: time 0.02104/0.07356, allocations: 18.69 MB / 329.8 MB, free: 6.875 MB / 314.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.0479692202061415]