Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 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.Thermal.HeatTransfer.Examples.Motor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1440000,variableFilter="time|core.T|winding.T",fileNamePrefix="Modelica_4.0.0_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_4.0.0_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.001645/0.001645, allocations: 111.8 kB / 17.74 MB, free: 5.336 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.001897/0.001897, allocations: 193.5 kB / 18.67 MB, free: 4.414 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.335/1.335, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00112/0.00112, allocations: 51.92 kB / 352 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2842/0.2853, allocations: 49.42 MB / 401.4 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003879/0.2893, allocations: 2.237 MB / 403.6 MB, free: 6.621 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001931/0.2912, allocations: 1.079 MB / 404.7 MB, free: 5.535 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000181/0.2914, allocations: 7.938 kB / 404.7 MB, free: 5.527 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004027/0.2919, allocations: 91.55 kB / 404.8 MB, free: 5.438 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004161/0.2923, allocations: 123.2 kB / 404.9 MB, free: 5.316 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004741/0.2928, allocations: 154.7 kB / 405.1 MB, free: 5.168 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003997/0.2932, allocations: 282.8 kB / 405.3 MB, free: 4.891 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000218/0.2934, allocations: 88.56 kB / 405.4 MB, free: 4.801 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002084/0.2937, allocations: 111.6 kB / 405.5 MB, free: 4.691 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002355/0.2939, allocations: 127.5 kB / 405.7 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.998e-05/0.294, allocations: 24 kB / 405.7 MB, free: 4.543 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001631/0.2941, allocations: 47.98 kB / 405.7 MB, free: 4.496 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.396e-05/0.2942, allocations: 47.84 kB / 405.8 MB, free: 4.449 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001388/0.2944, allocations: 119.4 kB / 405.9 MB, free: 4.332 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004137/0.2948, allocations: 292.1 kB / 406.2 MB, free: 4.051 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.2948, allocations: 0 / 406.2 MB, free: 4.051 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.2948, allocations: 0 / 406.2 MB, free: 4.051 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.807e-06/0.2948, allocations: 0 / 406.2 MB, free: 4.051 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.0008686/0.2957, allocations: 0.5381 MB / 406.7 MB, free: 3.465 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.052e-05/0.2957, allocations: 12.03 kB / 406.7 MB, free: 3.453 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001701/0.2959, allocations: 28.64 kB / 406.8 MB, free: 3.426 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004066/0.2963, allocations: 260.6 kB / 407 MB, free: 3.129 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.507e-05/0.2964, allocations: 16.38 kB / 407 MB, free: 3.113 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.06e-05/0.2964, allocations: 20.12 kB / 407 MB, free: 3.094 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003349/0.2968, allocations: 165.2 kB / 407.2 MB, free: 2.926 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.527e-05/0.2968, allocations: 11.84 kB / 407.2 MB, free: 2.914 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.245e-05/0.2968, allocations: 8 kB / 407.2 MB, free: 2.906 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.2968, allocations: 4 kB / 407.2 MB, free: 2.902 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002377/0.2971, allocations: 111.9 kB / 407.3 MB, free: 2.793 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009072/0.298, allocations: 0.5546 MB / 407.9 MB, free: 2.188 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003115/0.2983, allocations: 181.6 kB / 408.1 MB, free: 2.004 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001462/0.2985, allocations: 87.92 kB / 408.2 MB, free: 1.918 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.653e-05/0.2985, allocations: 4 kB / 408.2 MB, free: 1.914 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002292/0.2987, allocations: 119.3 kB / 408.3 MB, free: 1.785 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 1.864e-06/0.2988, allocations: 0 / 408.3 MB, free: 1.785 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004993/0.2993, allocations: 229.7 kB / 408.5 MB, free: 1.555 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.178e-05/0.2993, allocations: 59.39 kB / 408.6 MB, free: 1.484 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002501/0.2996, allocations: 248.9 kB / 408.8 MB, free: 1.23 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.244e-05/0.2996, allocations: 33.7 kB / 408.8 MB, free: 1.191 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000104/0.2997, allocations: 136.4 kB / 409 MB, free: 1.055 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.852e-05/0.2998, allocations: 67.02 kB / 409 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.428e-05/0.2998, allocations: 41.7 kB / 409.1 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001376/0.3, allocations: 342.8 kB / 409.4 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001128/0.3001, allocations: 51.97 kB / 409.5 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001244/0.3002, allocations: 83.41 kB / 409.5 MB, free: 464 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000244/0.3005, allocations: 143.3 kB / 409.7 MB, free: 312 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.3005, allocations: 3.938 kB / 409.7 MB, free: 308 kB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003496/0.3009, allocations: 205.2 kB / 409.9 MB, free: 96 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.088e-05/0.3009, allocations: 15.92 kB / 409.9 MB, free: 80 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.3009, allocations: 0 / 409.9 MB, free: 80 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.781e-05/0.3009, allocations: 7.938 kB / 409.9 MB, free: 72 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002081/0.3011, allocations: 39.98 kB / 410 MB, free: 32 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.937e-06/0.3012, allocations: 3.938 kB / 410 MB, free: 28 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001089/0.3013, allocations: 23.83 kB / 410 MB, free: 4 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.719e-05/0.3013, allocations: 8.078 kB / 410 MB, free: 15.99 MB / 334.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.0001292/0.3015, allocations: 149 kB / 410.1 MB, free: 15.84 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.716e-05/0.3015, allocations: 23.72 kB / 410.2 MB, free: 15.82 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.002e-05/0.3016, allocations: 30.17 kB / 410.2 MB, free: 15.79 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.3016, allocations: 4 kB / 410.2 MB, free: 15.78 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.346e-06/0.3016, allocations: 3.938 kB / 410.2 MB, free: 15.78 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.3016, allocations: 0 / 410.2 MB, free: 15.78 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000288/0.3019, allocations: 289.3 kB / 410.5 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.3019, allocations: 4 kB / 410.5 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001815/0.3021, allocations: 35.92 kB / 410.5 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.3021, allocations: 4 kB / 410.5 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.666e-05/0.3022, allocations: 4 kB / 410.5 MB, free: 15.4 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.507e-06/0.3022, allocations: 4 kB / 410.5 MB, free: 15.4 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.3022, allocations: 3.938 kB / 410.5 MB, free: 15.39 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004927/0.3027, allocations: 279.4 kB / 410.8 MB, free: 15.11 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.956e-05/0.3027, allocations: 96.8 kB / 410.9 MB, free: 14.99 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.219e-05/0.3028, allocations: 8 kB / 410.9 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.451e-05/0.3029, allocations: 11.94 kB / 410.9 MB, free: 14.97 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.493e-05/0.3029, allocations: 15.98 kB / 410.9 MB, free: 14.96 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.019e-05/0.303, allocations: 7.984 kB / 410.9 MB, free: 14.95 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001683/0.3031, allocations: 184.5 kB / 411.1 MB, free: 14.77 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3031, allocations: 0 / 411.1 MB, free: 14.77 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002773/0.3034, allocations: 59.91 kB / 411.2 MB, free: 14.71 MB / 334.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.0009591/0.3044, allocations: 413.9 kB / 411.6 MB, free: 14.45 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003191/0.3047, allocations: 151.8 kB / 411.7 MB, free: 14.3 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.3047, allocations: 3.938 kB / 411.7 MB, free: 14.3 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001268/0.3049, allocations: 71.91 kB / 411.8 MB, free: 14.23 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003371/0.3052, allocations: 43.45 kB / 411.8 MB, free: 14.19 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009972/0.3062, allocations: 0.5618 MB / 412.4 MB, free: 13.59 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003447/0.3066, allocations: 0.748 MB / 413.2 MB, free: 12.82 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.588e-05/0.3067, allocations: 19.44 kB / 413.2 MB, free: 12.8 MB / 334.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3067, allocations: 11.88 kB / 413.2 MB, free: 12.79 MB / 334.1 MB Notification: Performance of Templates: time 0.005924/0.3126, allocations: 3.176 MB / 416.4 MB, free: 9.621 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.makefile (rm -f Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & ./Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/HeatTransfer/Examples/Motor/Motor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches