Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Thermal.HeatTransfer.Examples.Motor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1440000,variableFilter="time|core.T|winding.T",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor") translateModel(Modelica.Thermal.HeatTransfer.Examples.Motor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1440000,variableFilter="time|core.T|winding.T",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001117/0.001117, allocations: 179.5 kB / 16.41 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.427/1.427, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008603/0.0008601, allocations: 91.8 kB / 270.9 MB, free: 8.348 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003375/0.0003375, allocations: 8 kB / 327 MB, free: 200 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2989/0.2992, allocations: 47.57 MB / 374.5 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.002252/0.3015, allocations: 1.851 MB / 376.4 MB, free: 43.99 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001263/0.3028, allocations: 0.9027 MB / 377.3 MB, free: 43.28 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001152/0.3029, allocations: 7.156 kB / 377.3 MB, free: 43.27 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000327/0.3033, allocations: 83.72 kB / 377.4 MB, free: 43.22 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002531/0.3035, allocations: 106.8 kB / 377.5 MB, free: 43.14 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002787/0.3038, allocations: 106.2 kB / 377.6 MB, free: 43.07 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002753/0.3041, allocations: 255 kB / 377.8 MB, free: 42.93 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001697/0.3043, allocations: 72.34 kB / 377.9 MB, free: 42.89 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000133/0.3044, allocations: 98.28 kB / 378 MB, free: 42.84 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001464/0.3046, allocations: 103.5 kB / 378.1 MB, free: 42.78 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.11e-05/0.3046, allocations: 9.188 kB / 378.1 MB, free: 42.78 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000122/0.3048, allocations: 34.12 kB / 378.2 MB, free: 42.77 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.993e-05/0.3048, allocations: 49.08 kB / 378.2 MB, free: 42.73 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.109e-05/0.3049, allocations: 61.89 kB / 378.3 MB, free: 42.69 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000277/0.3052, allocations: 212 kB / 378.5 MB, free: 42.54 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.925e-06/0.3052, allocations: 5.375 kB / 378.5 MB, free: 42.54 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.814e-06/0.3052, allocations: 0 / 378.5 MB, free: 42.54 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.324e-06/0.3052, allocations: 0 / 378.5 MB, free: 42.54 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 41 * Number of variables: 41 Notification: Performance of Generate backend data structure: time 0.0007869/0.306, allocations: 0.4988 MB / 379 MB, free: 42.06 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.707e-05/0.3061, allocations: 8.781 kB / 379 MB, free: 42.06 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001429/0.3062, allocations: 30.72 kB / 379 MB, free: 42.05 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002449/0.3065, allocations: 259.2 kB / 379.3 MB, free: 41.78 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.85e-05/0.3065, allocations: 10.81 kB / 379.3 MB, free: 41.77 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.782e-05/0.3066, allocations: 19.28 kB / 379.3 MB, free: 41.77 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003241/0.3069, allocations: 164.8 kB / 379.5 MB, free: 41.66 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.688e-05/0.3069, allocations: 7.844 kB / 379.5 MB, free: 41.65 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.153e-05/0.307, allocations: 6.281 kB / 379.5 MB, free: 41.64 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.458e-06/0.307, allocations: 4.25 kB / 379.5 MB, free: 41.64 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002548/0.3072, allocations: 112.7 kB / 379.6 MB, free: 41.59 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008161/0.3081, allocations: 0.5578 MB / 380.1 MB, free: 41.11 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003808/0.3085, allocations: 168.9 kB / 380.3 MB, free: 41.02 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001872/0.3087, allocations: 87.89 kB / 380.4 MB, free: 40.97 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.481e-05/0.3087, allocations: 10.91 kB / 380.4 MB, free: 40.96 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003366/0.3091, allocations: 111.2 kB / 380.5 MB, free: 40.88 MB / 298.7 MB Notification: Performance of pre-optimization done (n=20): time 1.653e-06/0.3091, allocations: 3.938 kB / 380.5 MB, free: 40.87 MB / 298.7 MB Notification: Performance of matching and sorting (n=20): time 0.0006129/0.3097, allocations: 232.2 kB / 380.7 MB, free: 40.75 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.444e-05/0.3097, allocations: 53.62 kB / 380.8 MB, free: 40.69 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003063/0.3101, allocations: 256.6 kB / 381 MB, free: 40.51 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.096e-05/0.3101, allocations: 30.73 kB / 381.1 MB, free: 40.48 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.965e-05/0.3102, allocations: 139.3 kB / 381.2 MB, free: 40.35 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.846e-05/0.3103, allocations: 68.62 kB / 381.3 MB, free: 40.29 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.889e-06/0.3103, allocations: 4.906 kB / 381.3 MB, free: 40.29 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.26e-05/0.3104, allocations: 336.9 kB / 381.6 MB, free: 39.95 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001169/0.3105, allocations: 46.27 kB / 381.7 MB, free: 39.93 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001466/0.3106, allocations: 90.98 kB / 381.7 MB, free: 39.87 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001376/0.3108, allocations: 55.94 kB / 381.8 MB, free: 39.84 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.3108, allocations: 0.9375 kB / 381.8 MB, free: 39.84 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000344/0.3112, allocations: 205.1 kB / 382 MB, free: 39.73 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.227e-05/0.3112, allocations: 10.83 kB / 382 MB, free: 39.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.165e-06/0.3112, allocations: 4.906 kB / 382 MB, free: 39.72 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.95e-05/0.3112, allocations: 2.125 kB / 382 MB, free: 39.72 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002184/0.3115, allocations: 49.5 kB / 382.1 MB, free: 39.71 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.207e-06/0.3115, allocations: 1.438 kB / 382.1 MB, free: 39.71 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001113/0.3116, allocations: 24.33 kB / 382.1 MB, free: 39.7 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.827e-05/0.3116, allocations: 10.25 kB / 382.1 MB, free: 39.69 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.lossTable.nextTimeEvent,lossTable.nextTimeEvent,$PRE.lossTable.nextTimeEventScaled,lossTable.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001041/0.3117, allocations: 137.2 kB / 382.2 MB, free: 39.56 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.026e-05/0.3118, allocations: 30.77 kB / 382.3 MB, free: 39.54 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.163e-05/0.3118, allocations: 29.83 kB / 382.3 MB, free: 39.52 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.968e-06/0.3118, allocations: 5.359 kB / 382.3 MB, free: 39.52 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.3118, allocations: 1.406 kB / 382.3 MB, free: 39.52 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.3119, allocations: 3.984 kB / 382.3 MB, free: 39.51 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002305/0.3121, allocations: 281.8 kB / 382.6 MB, free: 39.24 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.3121, allocations: 1.406 kB / 382.6 MB, free: 39.24 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001777/0.3123, allocations: 31.73 kB / 382.6 MB, free: 39.23 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.876e-06/0.3123, allocations: 1.469 kB / 382.6 MB, free: 39.23 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.669e-05/0.3123, allocations: 9.297 kB / 382.6 MB, free: 39.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.995e-06/0.3123, allocations: 1.469 kB / 382.6 MB, free: 39.23 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.3123, allocations: 7.938 kB / 382.6 MB, free: 39.22 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004707/0.3128, allocations: 286.2 kB / 382.9 MB, free: 39.04 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.881e-05/0.3129, allocations: 98.3 kB / 383 MB, free: 38.93 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.193e-05/0.3129, allocations: 6.625 kB / 383 MB, free: 38.93 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001178/0.313, allocations: 16.06 kB / 383 MB, free: 38.92 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.582e-05/0.3131, allocations: 9.672 kB / 383 MB, free: 38.91 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.882e-05/0.3131, allocations: 10.19 kB / 383.1 MB, free: 38.91 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001638/0.3133, allocations: 187 kB / 383.2 MB, free: 38.79 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3133, allocations: 0 / 383.2 MB, free: 38.79 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002656/0.3136, allocations: 59.81 kB / 383.3 MB, free: 38.77 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (winding.T,core.T) * Number of discrete variables: 3 ($whenCondition1,lossTable.nextTimeEvent,lossTable.nextTimeEventScaled) * Number of discrete states: 2 (lossTable.nextTimeEventScaled,lossTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008197/0.3144, allocations: 418.6 kB / 383.7 MB, free: 38.43 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000306/0.3147, allocations: 139.7 kB / 383.8 MB, free: 38.38 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.684e-06/0.3147, allocations: 4.188 kB / 383.8 MB, free: 38.38 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001304/0.3149, allocations: 74.28 kB / 383.9 MB, free: 38.34 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003433/0.3152, allocations: 47.7 kB / 384 MB, free: 38.32 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009917/0.3162, allocations: 0.6688 MB / 384.6 MB, free: 37.8 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002099/0.3164, allocations: 0.7481 MB / 385.4 MB, free: 37.08 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.61e-05/0.3165, allocations: 25.84 kB / 385.4 MB, free: 37.07 MB / 298.7 MB Notification: Performance of SimCode: time 6.81e-07/0.3165, allocations: 0 / 385.4 MB, free: 37.07 MB / 298.7 MB Notification: Performance of Templates: time 0.004642/0.3212, allocations: 3.09 MB / 388.5 MB, free: 34.53 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & ./Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/HeatTransfer/Examples/Motor/Motor.csv","../files/Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches