Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008051/0.0008051, allocations: 94.03 kB / 17.31 MB, free: 6.539 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008396/0.0008396, allocations: 176 kB / 18.21 MB, free: 5.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.127/1.127, allocations: 223.3 MB / 242.3 MB, free: 204 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002032/0.0002032, allocations: 11.98 kB / 302.1 MB, free: 6.121 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07203/0.07225, allocations: 50.41 MB / 352.5 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature): time 0.006516/0.07877, allocations: 7.447 MB / 359.9 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003484/0.08227, allocations: 2.567 MB / 362.5 MB, free: 9.637 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005632/0.08285, allocations: 23.94 kB / 362.5 MB, free: 9.613 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001072/0.08393, allocations: 457.6 kB / 363 MB, free: 9.164 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008077/0.08475, allocations: 349.5 kB / 363.3 MB, free: 8.82 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004139/0.08517, allocations: 187.8 kB / 363.5 MB, free: 8.637 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0011/0.08627, allocations: 1.163 MB / 364.7 MB, free: 7.473 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000574/0.08686, allocations: 475.8 kB / 365.1 MB, free: 6.98 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004786/0.08735, allocations: 406 kB / 365.5 MB, free: 6.582 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004995/0.08785, allocations: 453.7 kB / 366 MB, free: 6.137 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.562e-05/0.08796, allocations: 56 kB / 366 MB, free: 6.082 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002135/0.08818, allocations: 99.97 kB / 366.1 MB, free: 5.984 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001245/0.08831, allocations: 171.1 kB / 366.3 MB, free: 5.816 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004534/0.08877, allocations: 0.5147 MB / 366.8 MB, free: 5.293 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009068/0.08968, allocations: 1.129 MB / 367.9 MB, free: 4.16 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.723e-06/0.08969, allocations: 0 / 367.9 MB, free: 4.16 MB / 302.1 MB Notification: Performance of FrontEnd: time 5.61e-07/0.0897, allocations: 0 / 367.9 MB, free: 4.16 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.502e-05/0.08971, allocations: 0 / 367.9 MB, free: 4.16 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.001701/0.09142, allocations: 1.161 MB / 369.1 MB, free: 2.945 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.943e-05/0.09146, allocations: 8.031 kB / 369.1 MB, free: 2.938 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004368/0.0919, allocations: 151.6 kB / 369.3 MB, free: 2.789 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008177/0.09273, allocations: 0.6337 MB / 369.9 MB, free: 2.113 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.132e-05/0.09278, allocations: 62.38 kB / 369.9 MB, free: 2.051 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001052/0.09289, allocations: 91.94 kB / 370 MB, free: 1.961 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001243/0.09414, allocations: 0.8184 MB / 370.9 MB, free: 1.113 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.79e-05/0.09418, allocations: 11.91 kB / 370.9 MB, free: 1.102 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.987e-05/0.09424, allocations: 32 kB / 370.9 MB, free: 1.07 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.671e-05/0.09426, allocations: 20 kB / 370.9 MB, free: 1.051 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000989/0.09526, allocations: 0.5699 MB / 371.5 MB, free: 492 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.13/0.2252, allocations: 3.572 MB / 375.1 MB, free: 22.75 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004915/0.2257, allocations: 257.4 kB / 375.3 MB, free: 22.72 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002409/0.226, allocations: 124.6 kB / 375.4 MB, free: 22.71 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.639e-05/0.226, allocations: 5.812 kB / 375.4 MB, free: 22.71 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.657e-05/0.2261, allocations: 37.89 kB / 375.5 MB, free: 22.68 MB / 302.1 MB Notification: Performance of pre-optimization done (n=26): time 2.104e-06/0.2261, allocations: 0.9375 kB / 375.5 MB, free: 22.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.001835/0.2279, allocations: 1.109 MB / 376.6 MB, free: 22.13 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.151e-05/0.2279, allocations: 84.27 kB / 376.7 MB, free: 22.04 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008576/0.2288, allocations: 0.7598 MB / 377.4 MB, free: 21.72 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.835e-05/0.2288, allocations: 31.33 kB / 377.5 MB, free: 21.69 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002322/0.2291, allocations: 0.5162 MB / 378 MB, free: 21.28 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.765e-05/0.2291, allocations: 104.8 kB / 378.1 MB, free: 21.2 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.627e-05/0.2292, allocations: 55.7 kB / 378.1 MB, free: 21.16 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.421e-05/0.2293, allocations: 377 kB / 378.5 MB, free: 20.82 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002533/0.2296, allocations: 145.5 kB / 378.6 MB, free: 20.77 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000331/0.2299, allocations: 459.2 kB / 379.1 MB, free: 20.31 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006156/0.2305, allocations: 0.6312 MB / 379.7 MB, free: 19.74 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.29e-06/0.2305, allocations: 6.688 kB / 379.7 MB, free: 19.74 MB / 302.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.0009797/0.2315, allocations: 0.6578 MB / 380.4 MB, free: 19.45 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.847e-05/0.2315, allocations: 9.594 kB / 380.4 MB, free: 19.45 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.403e-05/0.2316, allocations: 10.75 kB / 380.4 MB, free: 19.45 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001235/0.2317, allocations: 38.09 kB / 380.4 MB, free: 19.44 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003979/0.2321, allocations: 158.8 kB / 380.6 MB, free: 19.42 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000588/0.2327, allocations: 1.283 MB / 381.9 MB, free: 18.11 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000442/0.2331, allocations: 57.83 kB / 381.9 MB, free: 18.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.521e-05/0.2332, allocations: 36.41 kB / 382 MB, free: 18.08 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * 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 (78): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00022/0.2334, allocations: 239.5 kB / 382.2 MB, free: 17.89 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.207e-05/0.2335, allocations: 74.94 kB / 382.3 MB, free: 17.85 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005833/0.2341, allocations: 345.3 kB / 382.6 MB, free: 17.68 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.2341, allocations: 7.906 kB / 382.6 MB, free: 17.68 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.856e-06/0.2341, allocations: 1.156 kB / 382.6 MB, free: 17.68 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.2341, allocations: 1.266 kB / 382.6 MB, free: 17.68 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001405/0.2355, allocations: 1.141 MB / 383.8 MB, free: 17.01 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.088e-06/0.2355, allocations: 4.562 kB / 383.8 MB, free: 17.01 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002538/0.2358, allocations: 67.78 kB / 383.8 MB, free: 17 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.693e-05/0.2359, allocations: 22.84 kB / 383.9 MB, free: 16.99 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.757e-05/0.2359, allocations: 8.656 kB / 383.9 MB, free: 16.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004957/0.2364, allocations: 1.279 MB / 385.1 MB, free: 15.67 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.2364, allocations: 2.656 kB / 385.2 MB, free: 15.67 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007497/0.2372, allocations: 0.5969 MB / 385.7 MB, free: 15.3 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001644/0.2374, allocations: 177 kB / 385.9 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.692e-05/0.2374, allocations: 14.8 kB / 385.9 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003135/0.2378, allocations: 29.83 kB / 386 MB, free: 15.13 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.326e-05/0.2378, allocations: 31.19 kB / 386 MB, free: 15.12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.592e-05/0.2378, allocations: 11.94 kB / 386 MB, free: 15.11 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005709/0.2384, allocations: 0.5162 MB / 386.5 MB, free: 14.89 MB / 302.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2384, allocations: 0 / 386.5 MB, free: 14.89 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005942/0.239, allocations: 171.8 kB / 386.7 MB, free: 14.87 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.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 (28): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001305/0.2392, allocations: 121 kB / 386.8 MB, free: 14.77 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000738/0.2399, allocations: 494.6 kB / 387.3 MB, free: 14.54 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.2399, allocations: 1.219 kB / 387.3 MB, free: 14.54 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003136/0.2402, allocations: 253.5 kB / 387.5 MB, free: 14.39 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001/0.2413, allocations: 171 kB / 387.7 MB, free: 14.33 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001953/0.2432, allocations: 1.94 MB / 389.6 MB, free: 13.04 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003717/0.2436, allocations: 0.9574 MB / 390.6 MB, free: 12.32 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001131/0.2437, allocations: 53.45 kB / 390.7 MB, free: 12.31 MB / 302.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2437, allocations: 0 / 390.7 MB, free: 12.31 MB / 302.1 MB Notification: Performance of Templates: time 0.01183/0.2556, allocations: 13.67 MB / 404.3 MB, free: 3.621 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Temperature/DCPM_Temperature.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches