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.0009783/0.0009783, allocations: 75.75 kB / 21.97 MB, free: 2.605 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.001508/0.001508, allocations: 168.1 kB / 25.33 MB, free: 9.449 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.9337/0.9337, allocations: 158.6 MB / 187.2 MB, free: 2.555 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.973e-06/1.973e-06, allocations: 0 / 251.1 MB, free: 3.574 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.654e-05/2.851e-05, allocations: 2.312 kB / 251.1 MB, free: 3.57 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01061/0.01064, allocations: 12.01 MB / 263.1 MB, free: 7.5 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.006474/0.01711, allocations: 3.274 MB / 266.4 MB, free: 4.211 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001796/0.01891, allocations: 43.88 kB / 266.4 MB, free: 4.168 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001701/0.02061, allocations: 0.6399 MB / 267 MB, free: 3.523 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002127/0.02274, allocations: 0.8218 MB / 267.9 MB, free: 2.695 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001022/0.02376, allocations: 399.5 kB / 268.3 MB, free: 2.305 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.003046/0.0268, allocations: 2.509 MB / 270.8 MB, free: 15.78 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001118/0.02792, allocations: 0.607 MB / 271.4 MB, free: 15.12 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0023/0.03022, allocations: 1.403 MB / 272.8 MB, free: 13.72 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001358/0.03158, allocations: 0.7673 MB / 273.5 MB, free: 12.95 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004836/0.03206, allocations: 232 kB / 273.8 MB, free: 12.72 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004687/0.03253, allocations: 267.9 kB / 274 MB, free: 12.46 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002642/0.0328, allocations: 478.2 kB / 274.5 MB, free: 11.99 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001004/0.0338, allocations: 0.7405 MB / 275.2 MB, free: 11.25 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001522/0.03532, allocations: 1.494 MB / 276.7 MB, free: 9.75 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.03533, allocations: 4 kB / 276.7 MB, free: 9.746 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.352e-06/0.03533, allocations: 0 / 276.7 MB, free: 9.746 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.162e-05/0.03536, allocations: 0 / 276.7 MB, free: 9.746 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.002428/0.03779, allocations: 2.25 MB / 279 MB, free: 7.449 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.912e-05/0.03784, allocations: 8.031 kB / 279 MB, free: 7.441 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006631/0.0385, allocations: 415.5 kB / 279.4 MB, free: 7.035 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001577/0.04008, allocations: 1.05 MB / 280.4 MB, free: 5.938 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.147e-05/0.04014, allocations: 119.5 kB / 280.6 MB, free: 5.82 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001489/0.04029, allocations: 164.3 kB / 280.7 MB, free: 5.66 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001555/0.04184, allocations: 1.269 MB / 282 MB, free: 4.289 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.938e-05/0.04188, allocations: 11.94 kB / 282 MB, free: 4.277 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.996e-05/0.04196, allocations: 68 kB / 282.1 MB, free: 4.211 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.498e-05/0.04199, allocations: 36 kB / 282.1 MB, free: 4.176 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008768/0.04286, allocations: 0.5741 MB / 282.7 MB, free: 3.594 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005137/0.048, allocations: 5.904 MB / 288.6 MB, free: 13.39 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009231/0.04892, allocations: 423.9 kB / 289 MB, free: 12.96 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005109/0.04944, allocations: 293.5 kB / 289.3 MB, free: 12.68 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.711e-05/0.04949, allocations: 12.66 kB / 289.3 MB, free: 12.66 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.253e-05/0.04954, allocations: 46.05 kB / 289.3 MB, free: 12.61 MB / 282.7 MB Notification: Performance of pre-optimization done (n=66): time 5.38e-06/0.04954, allocations: 3.938 kB / 289.3 MB, free: 12.61 MB / 282.7 MB Notification: Performance of matching and sorting (n=72): time 0.003069/0.05261, allocations: 1.655 MB / 291 MB, free: 10.91 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001189/0.05273, allocations: 111.5 kB / 291.1 MB, free: 10.77 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001047/0.05378, allocations: 1.126 MB / 292.2 MB, free: 9.637 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.963e-05/0.05382, allocations: 37.7 kB / 292.3 MB, free: 9.594 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006669/0.05448, allocations: 0.9626 MB / 293.2 MB, free: 8.621 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001862/0.05467, allocations: 261.8 kB / 293.5 MB, free: 8.363 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002068/0.05488, allocations: 216.4 kB / 293.7 MB, free: 8.141 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001918/0.05507, allocations: 0.5237 MB / 294.2 MB, free: 7.609 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002349/0.0553, allocations: 142.5 kB / 294.4 MB, free: 7.473 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005839/0.05589, allocations: 0.8414 MB / 295.2 MB, free: 6.32 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001061/0.05695, allocations: 1.018 MB / 296.2 MB, free: 5.02 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.204e-06/0.05695, allocations: 4 kB / 296.2 MB, free: 5.016 MB / 282.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.00136/0.05831, allocations: 1.019 MB / 297.3 MB, free: 3.977 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.186e-05/0.05836, allocations: 15.62 kB / 297.3 MB, free: 3.965 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.3e-05/0.05838, allocations: 20 kB / 297.3 MB, free: 3.945 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005481/0.05893, allocations: 146.9 kB / 297.4 MB, free: 3.789 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004891/0.05942, allocations: 247.6 kB / 297.7 MB, free: 3.547 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1454/0.2048, allocations: 5.616 MB / 303.3 MB, free: 48.97 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001163/0.206, allocations: 49.88 kB / 303.3 MB, free: 48.97 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.083e-05/0.2061, allocations: 56.22 kB / 303.4 MB, free: 48.97 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.0003965/0.2065, allocations: 239.4 kB / 303.6 MB, free: 48.81 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001788/0.2067, allocations: 155.9 kB / 303.8 MB, free: 48.81 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009933/0.2076, allocations: 0.5955 MB / 304.4 MB, free: 48.71 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.406e-06/0.2077, allocations: 6.125 kB / 304.4 MB, free: 48.71 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.2077, allocations: 1.406 kB / 304.4 MB, free: 48.71 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.266e-05/0.2077, allocations: 5.281 kB / 304.4 MB, free: 48.71 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002901/0.2106, allocations: 1.831 MB / 306.2 MB, free: 48.19 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.835e-06/0.2106, allocations: 3.844 kB / 306.2 MB, free: 48.19 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003378/0.2109, allocations: 129.4 kB / 306.3 MB, free: 48.19 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004874/0.2114, allocations: 155.1 kB / 306.5 MB, free: 48.15 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.294e-05/0.2115, allocations: 20.3 kB / 306.5 MB, free: 48.15 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002152/0.2136, allocations: 5.683 MB / 312.2 MB, free: 42.78 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.83e-06/0.2136, allocations: 11.06 kB / 312.2 MB, free: 42.77 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001311/0.2149, allocations: 1.025 MB / 313.2 MB, free: 42.35 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000335/0.2153, allocations: 195.1 kB / 313.4 MB, free: 42.35 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.458e-05/0.2154, allocations: 24.39 kB / 313.4 MB, free: 42.34 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002807/0.2156, allocations: 32.89 kB / 313.5 MB, free: 42.34 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001506/0.2158, allocations: 64.11 kB / 313.5 MB, free: 42.34 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.337e-05/0.2158, allocations: 27.06 kB / 313.6 MB, free: 42.34 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.001049/0.2169, allocations: 0.6769 MB / 314.2 MB, free: 42.19 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.2169, allocations: 0 / 314.2 MB, free: 42.19 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001082/0.218, allocations: 329.8 kB / 314.6 MB, free: 42.19 MB / 282.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.0002461/0.2182, allocations: 141.6 kB / 314.7 MB, free: 42.1 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001186/0.2194, allocations: 1.058 MB / 315.8 MB, free: 41.57 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.159e-06/0.2194, allocations: 1.594 kB / 315.8 MB, free: 41.57 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005432/0.2199, allocations: 0.7528 MB / 316.5 MB, free: 41.04 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001023/0.221, allocations: 353.2 kB / 316.9 MB, free: 41 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004639/0.2256, allocations: 2.691 MB / 319.6 MB, free: 39.55 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002163/0.2258, allocations: 253 kB / 319.8 MB, free: 39.46 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0004904/0.2263, allocations: 160.3 kB / 320 MB, free: 39.41 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001636/0.2265, allocations: 83.47 kB / 320 MB, free: 39.41 MB / 282.7 MB Notification: Performance of SimCode: time 1.834e-06/0.2265, allocations: 0 / 320 MB, free: 39.41 MB / 282.7 MB Notification: Performance of Templates: time 0.02297/0.2494, allocations: 17.36 MB / 337.4 MB, free: 26.08 MB / 282.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.620763130951673]