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.001423/0.001423, allocations: 107.3 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.001547/0.001547, allocations: 187.3 kB / 19.34 MB, free: 3.773 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.278/1.278, allocations: 205.1 MB / 225.2 MB, free: 12.23 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.001291/0.001291, allocations: 55.91 kB / 329.2 MB, free: 3.328 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07634/0.07764, allocations: 46.62 MB / 375.8 MB, free: 4.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003503/0.08118, allocations: 2.224 MB / 378 MB, free: 2.359 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001728/0.08293, allocations: 0.9594 MB / 379 MB, free: 1.391 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001761/0.08313, allocations: 7.938 kB / 379 MB, free: 1.383 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004026/0.08356, allocations: 95.56 kB / 379.1 MB, free: 1.289 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003935/0.08397, allocations: 127.2 kB / 379.2 MB, free: 1.164 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004065/0.08439, allocations: 119.7 kB / 379.3 MB, free: 1.047 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003639/0.08477, allocations: 290.8 kB / 379.6 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000185/0.08496, allocations: 80.58 kB / 379.7 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001802/0.08515, allocations: 115.5 kB / 379.8 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001995/0.08536, allocations: 131.5 kB / 379.9 MB, free: 452 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.892e-05/0.08541, allocations: 16 kB / 380 MB, free: 436 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001484/0.08556, allocations: 47.98 kB / 380 MB, free: 388 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.629e-05/0.08565, allocations: 59.77 kB / 380.1 MB, free: 328 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001185/0.08577, allocations: 115.3 kB / 380.2 MB, free: 212 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.151/0.2368, allocations: 281.4 kB / 380.4 MB, free: 10.27 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.912e-06/0.2368, allocations: 1.594 kB / 380.4 MB, free: 10.27 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.2368, allocations: 0 / 380.4 MB, free: 10.27 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.326e-05/0.2368, 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.0007953/0.2376, allocations: 0.5463 MB / 381 MB, free: 9.859 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.687e-05/0.2377, allocations: 8.844 kB / 381 MB, free: 9.859 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001688/0.2379, allocations: 28.47 kB / 381 MB, free: 9.848 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003121/0.2382, allocations: 256.2 kB / 381.3 MB, free: 9.625 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.747e-05/0.2382, allocations: 15.97 kB / 381.3 MB, free: 9.625 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.364e-05/0.2383, allocations: 18.19 kB / 381.3 MB, free: 9.625 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000314/0.2386, allocations: 170.5 kB / 381.5 MB, free: 9.582 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.338e-05/0.2386, allocations: 0 / 381.5 MB, free: 9.582 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.931e-05/0.2386, allocations: 7.031 kB / 381.5 MB, free: 9.582 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.344e-06/0.2386, allocations: 3.906 kB / 381.5 MB, free: 9.582 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002377/0.2389, allocations: 115.6 kB / 381.6 MB, free: 9.582 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007776/0.2397, allocations: 0.5558 MB / 382.2 MB, free: 9.293 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002785/0.24, allocations: 166.6 kB / 382.3 MB, free: 9.27 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001409/0.2401, allocations: 84.39 kB / 382.4 MB, free: 9.262 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.154e-05/0.2401, allocations: 6.844 kB / 382.4 MB, free: 9.262 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002047/0.2404, allocations: 121.5 kB / 382.5 MB, free: 9.207 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 2.425e-06/0.2404, allocations: 4.797 kB / 382.5 MB, free: 9.207 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004573/0.2408, allocations: 231.1 kB / 382.8 MB, free: 9.16 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.223e-05/0.2409, allocations: 54.36 kB / 382.8 MB, free: 9.098 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002478/0.2411, allocations: 257.4 kB / 383.1 MB, free: 8.992 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.493e-05/0.2411, allocations: 30.02 kB / 383.1 MB, free: 8.961 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.773e-05/0.2412, allocations: 148.4 kB / 383.2 MB, free: 8.863 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.74e-05/0.2413, allocations: 66.83 kB / 383.3 MB, free: 8.82 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.871e-05/0.2413, allocations: 42.02 kB / 383.3 MB, free: 8.805 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.6e-05/0.2414, allocations: 340.3 kB / 383.7 MB, free: 8.488 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001288/0.2415, allocations: 48.55 kB / 383.7 MB, free: 8.488 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001404/0.2417, allocations: 91.27 kB / 383.8 MB, free: 8.449 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002707/0.242, allocations: 149.5 kB / 384 MB, free: 8.418 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.242, allocations: 0.5 kB / 384 MB, free: 8.418 MB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003653/0.2424, allocations: 204.5 kB / 384.2 MB, free: 8.371 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.364e-05/0.2424, allocations: 6.141 kB / 384.2 MB, free: 8.371 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.15e-06/0.2424, allocations: 1.156 kB / 384.2 MB, free: 8.371 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.424e-05/0.2424, allocations: 3.062 kB / 384.2 MB, free: 8.371 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002043/0.2426, allocations: 50.61 kB / 384.2 MB, free: 8.371 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.065e-05/0.2426, allocations: 1.219 kB / 384.2 MB, free: 8.371 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.784e-05/0.2427, allocations: 21.84 kB / 384.2 MB, free: 8.359 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.421e-05/0.2428, allocations: 6.141 kB / 384.2 MB, free: 8.359 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 9.68e-05/0.2429, allocations: 151.8 kB / 384.4 MB, free: 8.238 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.402e-05/0.2429, allocations: 25.48 kB / 384.4 MB, free: 8.227 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.031e-05/0.243, allocations: 29.69 kB / 384.5 MB, free: 8.219 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.243, allocations: 1.547 kB / 384.5 MB, free: 8.219 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/0.243, allocations: 2.094 kB / 384.5 MB, free: 8.219 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.693e-05/0.243, allocations: 99.7 kB / 384.6 MB, free: 8.109 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.575e-05/0.2431, allocations: 5.406 kB / 384.6 MB, free: 8.109 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.235e-05/0.2432, allocations: 6.906 kB / 384.6 MB, free: 8.109 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.466e-05/0.2432, allocations: 14.28 kB / 384.6 MB, free: 8.105 MB / 318.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0004429/0.2437, allocations: 270.5 kB / 384.8 MB, free: 7.996 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0004455/0.2441, allocations: 436.2 kB / 385.3 MB, free: 7.77 MB / 318.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001137/0.2442, allocations: 70.39 kB / 385.3 MB, free: 7.77 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001358/0.2444, allocations: 189.5 kB / 385.5 MB, free: 7.691 MB / 318.1 MB Notification: Performance of Backend: time 4.91e-07/0.2444, allocations: 7.812 kB / 385.5 MB, free: 7.688 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001282/0.2457, allocations: 493.1 kB / 386 MB, free: 7.41 MB / 318.1 MB Notification: Performance of SimCode: time 0.0008619/0.2465, allocations: 0.9731 MB / 387 MB, free: 6.629 MB / 318.1 MB Notification: Performance of Templates: time 0.006502/0.2531, allocations: 2.96 MB / 389.9 MB, free: 6.363 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