Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Thermal.HeatTransfer.Examples.Motor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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.1.0-beta.om_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.1.0-beta.om_Modelica.Thermal.HeatTransfer.Examples.Motor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001542/0.001542, allocations: 120.9 kB / 17.83 MB, free: 5.051 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001838/0.001838, allocations: 208.3 kB / 18.79 MB, free: 4.102 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.436/1.436, allocations: 230.4 MB / 250 MB, free: 8.98 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001872/0.001872, allocations: 67.83 kB / 367.3 MB, free: 6.949 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2427/0.2445, allocations: 53.31 MB / 420.6 MB, free: 8.348 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003613/0.2482, allocations: 2.262 MB / 422.9 MB, free: 6.078 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002158/0.2503, allocations: 1.231 MB / 424.1 MB, free: 4.84 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000115/0.2504, allocations: 4 kB / 424.1 MB, free: 4.836 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004109/0.2508, allocations: 95.5 kB / 424.2 MB, free: 4.742 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004464/0.2513, allocations: 171 kB / 424.4 MB, free: 4.574 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002842/0.2516, allocations: 111.6 kB / 424.5 MB, free: 4.465 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003556/0.2519, allocations: 298.8 kB / 424.8 MB, free: 4.172 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00019/0.2521, allocations: 68.53 kB / 424.9 MB, free: 4.102 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001695/0.2523, allocations: 115.6 kB / 425 MB, free: 3.988 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000193/0.2525, allocations: 127.5 kB / 425.1 MB, free: 3.863 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.591e-05/0.2525, allocations: 24 kB / 425.1 MB, free: 3.84 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001257/0.2526, allocations: 51.92 kB / 425.2 MB, free: 3.789 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.942e-05/0.2527, allocations: 59.81 kB / 425.2 MB, free: 3.73 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000124/0.2528, allocations: 119.3 kB / 425.3 MB, free: 3.613 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003781/0.2532, allocations: 290.6 kB / 425.6 MB, free: 3.332 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.2532, allocations: 0 / 425.6 MB, free: 3.332 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.2532, allocations: 0 / 425.6 MB, free: 3.332 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.67e-06/0.2532, allocations: 4 kB / 425.6 MB, free: 3.328 MB / 334.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.0008963/0.2541, allocations: 0.5569 MB / 426.2 MB, free: 2.723 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.174e-05/0.2542, allocations: 8.031 kB / 426.2 MB, free: 2.715 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001502/0.2543, allocations: 36.73 kB / 426.2 MB, free: 2.68 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003703/0.2547, allocations: 259.8 kB / 426.5 MB, free: 2.387 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.92e-05/0.2547, allocations: 12.38 kB / 426.5 MB, free: 2.375 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.885e-05/0.2548, allocations: 24.12 kB / 426.5 MB, free: 2.352 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003336/0.2551, allocations: 157.6 kB / 426.7 MB, free: 2.191 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.551e-05/0.2551, allocations: 4 kB / 426.7 MB, free: 2.188 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.019e-05/0.2551, allocations: 4 kB / 426.7 MB, free: 2.184 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.085e-06/0.2551, allocations: 8 kB / 426.7 MB, free: 2.176 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002798/0.2554, allocations: 119.7 kB / 426.8 MB, free: 2.059 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009043/0.2563, allocations: 0.5548 MB / 427.4 MB, free: 1.453 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003256/0.2566, allocations: 162.5 kB / 427.5 MB, free: 1.285 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001681/0.2568, allocations: 83.92 kB / 427.6 MB, free: 1.203 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.949e-05/0.2568, allocations: 3.938 kB / 427.6 MB, free: 1.199 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000234/0.2571, allocations: 119.3 kB / 427.7 MB, free: 1.07 MB / 334.1 MB Notification: Performance of pre-optimization done (n=20): time 1.693e-06/0.2571, allocations: 0 / 427.7 MB, free: 1.07 MB / 334.1 MB Notification: Performance of matching and sorting (n=20): time 0.000539/0.2576, allocations: 244.1 kB / 428 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.797e-05/0.2577, allocations: 51.41 kB / 428 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002784/0.2579, allocations: 257 kB / 428.3 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.52e-05/0.258, allocations: 29.7 kB / 428.3 MB, free: 480 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001044/0.2581, allocations: 152.5 kB / 428.4 MB, free: 324 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.825e-05/0.2581, allocations: 67.38 kB / 428.5 MB, free: 256 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.299e-05/0.2582, allocations: 45.66 kB / 428.6 MB, free: 204 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001734/0.2584, allocations: 338.8 kB / 428.9 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001553/0.2585, allocations: 51.98 kB / 428.9 MB, free: 15.81 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001455/0.2587, allocations: 87.39 kB / 429 MB, free: 15.71 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002694/0.259, allocations: 142 kB / 429.2 MB, free: 15.56 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.259, allocations: 4 kB / 429.2 MB, free: 15.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003671/0.2593, allocations: 201.4 kB / 429.4 MB, free: 15.36 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.675e-05/0.2593, allocations: 8 kB / 429.4 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.2594, allocations: 3.938 kB / 429.4 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.46e-05/0.2594, allocations: 0 / 429.4 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002263/0.2596, allocations: 59.91 kB / 429.4 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.353e-06/0.2596, allocations: 3.938 kB / 429.4 MB, free: 15.28 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.678e-05/0.2597, allocations: 11.89 kB / 429.4 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.695e-05/0.2597, allocations: 12.09 kB / 429.5 MB, free: 15.26 MB / 350.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.0001361/0.2598, allocations: 148.6 kB / 429.6 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.994e-05/0.2599, allocations: 27.86 kB / 429.6 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.969e-05/0.26, allocations: 26.17 kB / 429.7 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.4e-06/0.26, allocations: 4 kB / 429.7 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.163e-06/0.26, allocations: 7.922 kB / 429.7 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.26, allocations: 0 / 429.7 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003021/0.2603, allocations: 297.4 kB / 430 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-06/0.2603, allocations: 0 / 430 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001919/0.2605, allocations: 35.92 kB / 430 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.2605, allocations: 4 kB / 430 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.837e-05/0.2605, allocations: 8 kB / 430 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.2605, allocations: 0 / 430 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.776e-06/0.2605, allocations: 3.938 kB / 430 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005104/0.261, allocations: 289.9 kB / 430.3 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.48e-05/0.2611, allocations: 93.05 kB / 430.4 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.128e-05/0.2611, allocations: 0 / 430.4 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.215e-05/0.2612, allocations: 16 kB / 430.4 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.201e-05/0.2612, allocations: 11.94 kB / 430.4 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.396e-05/0.2613, allocations: 15.98 kB / 430.4 MB, free: 14.2 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001856/0.2614, allocations: 188.5 kB / 430.6 MB, free: 14.01 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2614, allocations: 3.938 kB / 430.6 MB, free: 14.01 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002768/0.2617, allocations: 59.92 kB / 430.7 MB, free: 13.95 MB / 350.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.001438/0.2632, allocations: 404.5 kB / 431.1 MB, free: 13.7 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003176/0.2635, allocations: 135.8 kB / 431.2 MB, free: 13.57 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.2635, allocations: 0 / 431.2 MB, free: 13.57 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001477/0.2636, allocations: 67.91 kB / 431.3 MB, free: 13.5 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003207/0.2639, allocations: 52.06 kB / 431.3 MB, free: 13.46 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009588/0.2649, allocations: 0.5476 MB / 431.9 MB, free: 12.89 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003715/0.2653, allocations: 0.748 MB / 432.6 MB, free: 12.11 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000102/0.2654, allocations: 33.92 kB / 432.6 MB, free: 12.07 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.407e-05/0.2654, allocations: 19.44 kB / 432.7 MB, free: 12.05 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.2654, allocations: 3.938 kB / 432.7 MB, free: 12.05 MB / 350.1 MB Notification: Performance of Templates: time 0.006978/0.2724, allocations: 2.751 MB / 435.4 MB, free: 9.328 MB / 350.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Thermal.HeatTransfer.Examples.Motor.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & ./Modelica_4.1.0-beta.om_Modelica.Thermal.HeatTransfer.Examples.Motor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/HeatTransfer/Examples/Motor/Motor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Thermal.HeatTransfer.Examples.Motor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches