Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.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 3.2.3+maint.om/package.mo", uses=false) 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.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.Thermal.HeatTransfer.Examples.Motor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1440000,variableFilter="time|core.T|winding.T",fileNamePrefix="Modelica_3.2.3_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_Modelica.Thermal.HeatTransfer.Examples.Motor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001565/0.001565, allocations: 111.2 kB / 18.4 MB, free: 4.695 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.002353/0.002353, allocations: 189.2 kB / 19.33 MB, free: 3.781 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.382/1.382, allocations: 205.1 MB / 225.2 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001332/0.001332, allocations: 51.94 kB / 329.2 MB, free: 3.344 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09189/0.09323, allocations: 46.62 MB / 375.8 MB, free: 4.617 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.004499/0.09779, allocations: 2.233 MB / 378 MB, free: 2.371 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00209/0.09992, allocations: 0.9593 MB / 379 MB, free: 1.402 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002334/0.1002, allocations: 4 kB / 379 MB, free: 1.398 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004861/0.1007, allocations: 99.48 kB / 379.1 MB, free: 1.301 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005102/0.1012, allocations: 123.2 kB / 379.2 MB, free: 1.18 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004585/0.1017, allocations: 127.7 kB / 379.3 MB, free: 1.055 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004691/0.1022, allocations: 286.8 kB / 379.6 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002523/0.1025, allocations: 84.52 kB / 379.7 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002396/0.1027, allocations: 119.6 kB / 379.8 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00025/0.103, allocations: 131.5 kB / 379.9 MB, free: 456 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.56e-05/0.103, allocations: 16 kB / 380 MB, free: 440 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001647/0.1032, allocations: 43.98 kB / 380 MB, free: 396 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.39e-05/0.1033, allocations: 59.83 kB / 380.1 MB, free: 336 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001363/0.1034, allocations: 115.3 kB / 380.2 MB, free: 220 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.199/0.3024, allocations: 285.2 kB / 380.4 MB, free: 10.27 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.626e-06/0.3024, allocations: 1 kB / 380.4 MB, free: 10.27 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.685e-06/0.3025, allocations: 0 / 380.4 MB, free: 10.27 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.63e-05/0.3025, allocations: 0 / 380.4 MB, free: 10.27 MB / 318.1 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.0007718/0.3033, allocations: 0.5434 MB / 381 MB, free: 9.859 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.498e-05/0.3033, allocations: 8.656 kB / 381 MB, free: 9.859 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001497/0.3035, allocations: 32.23 kB / 381 MB, free: 9.848 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000311/0.3038, allocations: 254.8 kB / 381.3 MB, free: 9.625 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.687e-05/0.3038, allocations: 11.19 kB / 381.3 MB, free: 9.625 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.587e-05/0.3039, allocations: 19.42 kB / 381.3 MB, free: 9.625 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000315/0.3042, allocations: 170.7 kB / 381.5 MB, free: 9.582 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.286e-05/0.3042, allocations: 0 / 381.5 MB, free: 9.582 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.135e-05/0.3042, allocations: 11.08 kB / 381.5 MB, free: 9.582 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.482e-06/0.3042, allocations: 4.25 kB / 381.5 MB, free: 9.582 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002348/0.3045, allocations: 114.3 kB / 381.6 MB, free: 9.582 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007978/0.3053, allocations: 0.5553 MB / 382.2 MB, free: 9.293 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002778/0.3056, allocations: 163.8 kB / 382.3 MB, free: 9.27 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001438/0.3057, allocations: 91.08 kB / 382.4 MB, free: 9.262 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.458e-05/0.3058, allocations: 5.484 kB / 382.4 MB, free: 9.262 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002034/0.306, allocations: 120.4 kB / 382.5 MB, free: 9.207 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 1.503e-06/0.306, allocations: 1.375 kB / 382.5 MB, free: 9.207 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004969/0.3065, allocations: 229.2 kB / 382.8 MB, free: 9.16 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.558e-05/0.3065, allocations: 55.03 kB / 382.8 MB, free: 9.098 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002593/0.3068, allocations: 256.3 kB / 383.1 MB, free: 8.992 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.611e-05/0.3068, allocations: 33.86 kB / 383.1 MB, free: 8.961 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.623e-05/0.3069, allocations: 142.5 kB / 383.2 MB, free: 8.863 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.797e-05/0.307, allocations: 68.7 kB / 383.3 MB, free: 8.82 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6e-05/0.307, allocations: 41.53 kB / 383.3 MB, free: 8.805 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.763e-05/0.3071, allocations: 335.6 kB / 383.7 MB, free: 8.488 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000127/0.3072, allocations: 54.95 kB / 383.7 MB, free: 8.488 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000154/0.3074, allocations: 90.16 kB / 383.8 MB, free: 8.449 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002614/0.3077, allocations: 146.4 kB / 384 MB, free: 8.418 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.3077, allocations: 0.5625 kB / 384 MB, free: 8.418 MB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003708/0.308, allocations: 207.5 kB / 384.2 MB, free: 8.367 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.926e-05/0.3081, allocations: 5.5 kB / 384.2 MB, free: 8.367 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/0.3081, allocations: 3.828 kB / 384.2 MB, free: 8.367 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.032e-05/0.3081, allocations: 2.344 kB / 384.2 MB, free: 8.367 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002263/0.3083, allocations: 48.2 kB / 384.2 MB, free: 8.367 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.837e-06/0.3084, allocations: 4.031 kB / 384.2 MB, free: 8.367 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.626e-05/0.3085, allocations: 21.27 kB / 384.2 MB, free: 8.355 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.522e-05/0.3085, allocations: 8.594 kB / 384.2 MB, free: 8.355 MB / 318.1 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 ($PRE.lossTable.nextTimeEvent,$whenCondition1,lossTable.nextTimeEventScaled,$PRE.lossTable.nextTimeEventScaled,lossTable.nextTimeEvent) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001046/0.3086, allocations: 152.7 kB / 384.4 MB, free: 8.234 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.434e-05/0.3086, allocations: 25.73 kB / 384.4 MB, free: 8.223 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.5e-05/0.3087, allocations: 27.06 kB / 384.4 MB, free: 8.215 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.3087, allocations: 3.422 kB / 384.4 MB, free: 8.215 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.103e-06/0.3087, allocations: 0 / 384.4 MB, free: 8.215 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.1e-06/0.3087, allocations: 5.875 kB / 384.5 MB, free: 8.211 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002317/0.309, allocations: 286.9 kB / 384.7 MB, free: 8.02 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.309, allocations: 0 / 384.7 MB, free: 8.02 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001754/0.3092, allocations: 39.41 kB / 384.8 MB, free: 8.02 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.507e-06/0.3092, allocations: 1.344 kB / 384.8 MB, free: 8.02 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.525e-05/0.3092, allocations: 10.39 kB / 384.8 MB, free: 8.016 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.3092, allocations: 0 / 384.8 MB, free: 8.016 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.3092, allocations: 2.453 kB / 384.8 MB, free: 8.016 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004318/0.3096, allocations: 284 kB / 385.1 MB, free: 7.93 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.704e-05/0.3097, allocations: 99.19 kB / 385.2 MB, free: 7.82 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.492e-05/0.3097, allocations: 6.656 kB / 385.2 MB, free: 7.82 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.864e-05/0.3098, allocations: 6.922 kB / 385.2 MB, free: 7.82 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.554e-05/0.3099, allocations: 22.27 kB / 385.2 MB, free: 7.812 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.953e-05/0.3099, allocations: 10.2 kB / 385.2 MB, free: 7.812 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001382/0.31, allocations: 185.3 kB / 385.4 MB, free: 7.734 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.31, allocations: 1.219 kB / 385.4 MB, free: 7.734 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000274/0.3103, allocations: 52.89 kB / 385.4 MB, free: 7.734 MB / 318.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008389/0.3112, allocations: 408 kB / 385.8 MB, free: 7.43 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002892/0.3115, allocations: 151.8 kB / 386 MB, free: 7.422 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.3115, allocations: 0 / 386 MB, free: 7.422 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001343/0.3116, allocations: 76.34 kB / 386.1 MB, free: 7.422 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003431/0.312, allocations: 53.44 kB / 386.1 MB, free: 7.41 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008341/0.3128, allocations: 0.5642 MB / 386.7 MB, free: 7.074 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001616/0.313, allocations: 0.7427 MB / 387.4 MB, free: 6.379 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.379e-05/0.3131, allocations: 23.66 kB / 387.4 MB, free: 6.375 MB / 318.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3131, allocations: 4 kB / 387.4 MB, free: 6.371 MB / 318.1 MB Notification: Performance of Templates: time 0.005447/0.3185, allocations: 3.166 MB / 390.6 MB, free: 6.02 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.makefile (rm -f Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & ./Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/HeatTransfer/Examples/Motor/Motor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches