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.001057/0.001057, allocations: 83.58 kB / 21.19 MB, free: 3.379 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.001077/0.001077, allocations: 165 kB / 24.56 MB, free: 12 kB / 18.57 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.027/1.027, allocations: 177.1 MB / 205 MB, free: 5.641 MB / 186.7 MB " [Timeout remaining time 179] 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 2.384e-06/2.384e-06, allocations: 0 / 273 MB, free: 1.551 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.111e-05/4.349e-05, allocations: 6.312 kB / 273 MB, free: 1.543 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.02816/0.02821, allocations: 12.08 MB / 285.1 MB, free: 5.406 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01286/0.04107, allocations: 3.273 MB / 288.3 MB, free: 2.125 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001688/0.04275, allocations: 43.81 kB / 288.4 MB, free: 2.082 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002336/0.04509, allocations: 0.6361 MB / 289 MB, free: 1.441 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00331/0.0484, allocations: 0.8218 MB / 289.8 MB, free: 0.6133 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00122/0.04962, allocations: 403.5 kB / 290.2 MB, free: 224 kB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1392/0.1888, allocations: 2.51 MB / 292.8 MB, free: 16.55 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001205/0.19, allocations: 0.6067 MB / 293.4 MB, free: 16.42 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002489/0.1925, allocations: 1.404 MB / 294.8 MB, free: 16.29 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001247/0.1938, allocations: 0.7691 MB / 295.5 MB, free: 16.2 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000379/0.1942, allocations: 229.3 kB / 295.8 MB, free: 16.2 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005792/0.1947, allocations: 271.2 kB / 296 MB, free: 16.2 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003115/0.1951, allocations: 472 kB / 296.5 MB, free: 16.11 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009756/0.196, allocations: 0.7419 MB / 297.2 MB, free: 16.02 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00208/0.1981, allocations: 1.495 MB / 298.7 MB, free: 15.43 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.1981, allocations: 0.5312 kB / 298.7 MB, free: 15.43 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1981, allocations: 0 / 298.7 MB, free: 15.43 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.838e-05/0.1982, allocations: 0.5 kB / 298.7 MB, free: 15.43 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.003481/0.2016, allocations: 2.251 MB / 301 MB, free: 13.98 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.544e-05/0.2017, allocations: 9.625 kB / 301 MB, free: 13.98 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008503/0.2025, allocations: 416.8 kB / 301.4 MB, free: 13.82 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001773/0.2043, allocations: 1.053 MB / 302.4 MB, free: 13.22 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.239e-05/0.2044, allocations: 113.1 kB / 302.5 MB, free: 13.17 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002291/0.2046, allocations: 161 kB / 302.7 MB, free: 13.12 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002232/0.2069, allocations: 1.268 MB / 304 MB, free: 12.49 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.135e-05/0.2069, allocations: 14.09 kB / 304 MB, free: 12.48 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001238/0.207, allocations: 69.81 kB / 304.1 MB, free: 12.43 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.145e-05/0.2071, allocations: 38.47 kB / 304.1 MB, free: 12.43 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001482/0.2086, allocations: 0.5599 MB / 304.7 MB, free: 12.34 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006467/0.215, allocations: 5.921 MB / 310.6 MB, free: 8.152 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001049/0.2161, allocations: 425.1 kB / 311 MB, free: 8.027 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006441/0.2167, allocations: 297 kB / 311.3 MB, free: 7.961 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.568e-05/0.2168, allocations: 22.03 kB / 311.3 MB, free: 7.953 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.309e-05/0.2168, allocations: 45.3 kB / 311.3 MB, free: 7.902 MB / 266.7 MB Notification: Performance of pre-optimization done (n=66): time 3.206e-06/0.2168, allocations: 0 / 311.3 MB, free: 7.902 MB / 266.7 MB Notification: Performance of matching and sorting (n=72): time 0.003323/0.2202, allocations: 1.648 MB / 313 MB, free: 7.031 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.209e-05/0.2202, allocations: 113.4 kB / 313.1 MB, free: 6.906 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001392/0.2216, allocations: 1.134 MB / 314.2 MB, free: 6.137 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.757e-05/0.2216, allocations: 37.7 kB / 314.3 MB, free: 6.094 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004841/0.2221, allocations: 0.95 MB / 315.2 MB, free: 5.141 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001552/0.2223, allocations: 276.8 kB / 315.5 MB, free: 4.875 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002457/0.2225, allocations: 212.5 kB / 315.7 MB, free: 4.656 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.11e-05/0.2226, allocations: 0.5121 MB / 316.2 MB, free: 4.137 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003296/0.2229, allocations: 142.5 kB / 316.4 MB, free: 4 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006276/0.2236, allocations: 0.8451 MB / 317.2 MB, free: 2.852 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001103/0.2247, allocations: 1.018 MB / 318.2 MB, free: 1.613 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.996e-06/0.2247, allocations: 8 kB / 318.2 MB, free: 1.605 MB / 266.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.001692/0.2264, allocations: 1.021 MB / 319.2 MB, free: 0.6641 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.688e-05/0.2264, allocations: 15.98 kB / 319.3 MB, free: 0.6484 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.932e-05/0.2264, allocations: 16 kB / 319.3 MB, free: 0.6328 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005722/0.227, allocations: 140.3 kB / 319.4 MB, free: 496 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007223/0.2277, allocations: 255.4 kB / 319.7 MB, free: 260 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003156/0.2309, allocations: 5.615 MB / 325.3 MB, free: 10.32 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004338/0.2313, allocations: 51.94 kB / 325.3 MB, free: 10.27 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.96e-05/0.2314, allocations: 55.98 kB / 325.4 MB, free: 10.21 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.000274/0.2316, allocations: 235.1 kB / 325.6 MB, free: 9.988 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001576/0.2318, allocations: 163.2 kB / 325.8 MB, free: 9.828 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008369/0.2326, allocations: 0.5931 MB / 326.4 MB, free: 9.219 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.2326, allocations: 4 kB / 326.4 MB, free: 9.215 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.2326, allocations: 4 kB / 326.4 MB, free: 9.211 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.613e-06/0.2326, allocations: 3.984 kB / 326.4 MB, free: 9.207 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002018/0.2347, allocations: 1.83 MB / 328.2 MB, free: 7.305 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.002e-06/0.2347, allocations: 7.938 kB / 328.2 MB, free: 7.297 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003444/0.235, allocations: 127.5 kB / 328.3 MB, free: 7.18 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003482/0.2354, allocations: 163.5 kB / 328.5 MB, free: 7.016 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.709e-05/0.2354, allocations: 16 kB / 328.5 MB, free: 7 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002405/0.2378, allocations: 5.687 MB / 334.2 MB, free: 0.9883 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.508e-06/0.2378, allocations: 7.938 kB / 334.2 MB, free: 0.9805 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009976/0.2388, allocations: 1.018 MB / 335.2 MB, free: 15.88 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002641/0.2391, allocations: 191 kB / 335.4 MB, free: 15.69 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.023e-05/0.2391, allocations: 23.94 kB / 335.4 MB, free: 15.67 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002873/0.2394, allocations: 31.98 kB / 335.5 MB, free: 15.64 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001041/0.2395, allocations: 72.36 kB / 335.5 MB, free: 15.57 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.75e-05/0.2396, allocations: 27.98 kB / 335.6 MB, free: 15.54 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0006777/0.2402, allocations: 0.6707 MB / 336.2 MB, free: 14.87 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2402, allocations: 0 / 336.2 MB, free: 14.87 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0009882/0.2412, allocations: 331.9 kB / 336.6 MB, free: 14.54 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.0002277/0.2415, allocations: 138.2 kB / 336.7 MB, free: 14.4 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000994/0.2425, allocations: 1.057 MB / 337.8 MB, free: 13.35 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.2425, allocations: 0 / 337.8 MB, free: 13.35 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000476/0.2429, allocations: 0.756 MB / 338.5 MB, free: 12.56 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000911/0.2438, allocations: 355.8 kB / 338.9 MB, free: 12.24 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003643/0.2475, allocations: 2.693 MB / 341.6 MB, free: 9.457 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001761/0.2477, allocations: 249 kB / 341.8 MB, free: 9.188 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0003584/0.248, allocations: 154.8 kB / 341.9 MB, free: 9.031 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001516/0.2482, allocations: 88.48 kB / 342 MB, free: 8.945 MB / 298.7 MB Notification: Performance of SimCode: time 5.51e-07/0.2482, allocations: 0 / 342 MB, free: 8.945 MB / 298.7 MB Notification: Performance of Templates: time 0.02151/0.2697, allocations: 17.39 MB / 359.4 MB, free: 7.906 MB / 314.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 240] 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","",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.6698245061561465]