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.002881/0.002886, allocations: 182.8 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.342/3.342, 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.001257/0.001256, allocations: 97.67 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005978/0.0005978, allocations: 11.98 kB / 327 MB, free: 216 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4974/0.498, allocations: 47.57 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.004459/0.5026, allocations: 1.778 MB / 376.3 MB, free: 44.04 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003276/0.5059, allocations: 0.9023 MB / 377.2 MB, free: 43.34 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003249/0.5063, allocations: 3.094 kB / 377.2 MB, free: 43.34 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005778/0.5069, allocations: 83.7 kB / 377.3 MB, free: 43.29 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007366/0.5077, allocations: 110.4 kB / 377.4 MB, free: 43.2 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008199/0.5086, allocations: 110.3 kB / 377.5 MB, free: 43.13 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007201/0.5093, allocations: 197.6 kB / 377.7 MB, free: 43.01 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000354/0.5097, allocations: 68.41 kB / 377.8 MB, free: 42.97 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003843/0.5101, allocations: 92.28 kB / 377.8 MB, free: 42.93 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003184/0.5105, allocations: 97.31 kB / 377.9 MB, free: 42.87 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.73e-05/0.5106, allocations: 8.719 kB / 378 MB, free: 42.87 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000327/0.5109, allocations: 35.5 kB / 378 MB, free: 42.86 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001142/0.5111, allocations: 48.69 kB / 378 MB, free: 42.82 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000158/0.5112, allocations: 61.92 kB / 378.1 MB, free: 42.78 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006516/0.5119, allocations: 210.8 kB / 378.3 MB, free: 42.63 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.698e-06/0.512, allocations: 1.031 kB / 378.3 MB, free: 42.63 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.815e-06/0.512, allocations: 0 / 378.3 MB, free: 42.63 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.049e-05/0.512, allocations: 0 / 378.3 MB, free: 42.63 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.001464/0.5135, allocations: 0.5069 MB / 378.8 MB, free: 42.15 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.63e-05/0.5136, allocations: 8.5 kB / 378.8 MB, free: 42.15 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003504/0.514, allocations: 34.8 kB / 378.9 MB, free: 42.13 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005849/0.5146, allocations: 243 kB / 379.1 MB, free: 41.88 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.887e-05/0.5147, allocations: 11.16 kB / 379.1 MB, free: 41.87 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.934e-05/0.5148, allocations: 22.34 kB / 379.1 MB, free: 41.86 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007312/0.5155, allocations: 160.2 kB / 379.3 MB, free: 41.75 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.124e-05/0.5156, allocations: 4.875 kB / 379.3 MB, free: 41.75 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.652e-05/0.5156, allocations: 9.031 kB / 379.3 MB, free: 41.74 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.627e-05/0.5157, allocations: 8.594 kB / 379.3 MB, free: 41.74 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005941/0.5163, allocations: 116.6 kB / 379.4 MB, free: 41.68 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001955/0.5183, allocations: 0.5622 MB / 380 MB, free: 41.2 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007415/0.5191, allocations: 171.8 kB / 380.1 MB, free: 41.1 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.011e-05/0.5192, allocations: 2.906 kB / 380.1 MB, free: 41.1 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000537/0.5198, allocations: 107 kB / 380.3 MB, free: 41.02 MB / 298.7 MB Notification: Performance of pre-optimization done (n=20): time 4.679e-06/0.5198, allocations: 0 / 380.3 MB, free: 41.02 MB / 298.7 MB Notification: Performance of matching and sorting (n=20): time 0.001151/0.521, allocations: 236.9 kB / 380.5 MB, free: 40.89 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.149e-05/0.5211, allocations: 57.78 kB / 380.5 MB, free: 40.82 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005921/0.5217, allocations: 252.9 kB / 380.8 MB, free: 40.65 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.118e-05/0.5218, allocations: 34.91 kB / 380.8 MB, free: 40.61 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001283/0.5219, allocations: 189.5 kB / 381 MB, free: 40.43 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001128/0.522, allocations: 75.95 kB / 381.1 MB, free: 40.37 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.162e-05/0.5221, allocations: 5.375 kB / 381.1 MB, free: 40.36 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.604e-05/0.5222, allocations: 324 kB / 381.4 MB, free: 40.04 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002791/0.5225, allocations: 46.61 kB / 381.4 MB, free: 40.02 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003105/0.5228, allocations: 90.86 kB / 381.5 MB, free: 39.95 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003127/0.5232, allocations: 60.28 kB / 381.6 MB, free: 39.93 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.422e-06/0.5232, allocations: 0 / 381.6 MB, free: 39.93 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0008101/0.524, allocations: 191.7 kB / 381.8 MB, free: 39.82 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.565e-05/0.5241, allocations: 10.81 kB / 381.8 MB, free: 39.82 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.949e-06/0.5241, allocations: 0 / 381.8 MB, free: 39.82 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.137e-05/0.5242, allocations: 6.859 kB / 381.8 MB, free: 39.82 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005318/0.5247, allocations: 44.38 kB / 381.8 MB, free: 39.81 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.717e-05/0.5248, allocations: 5.531 kB / 381.8 MB, free: 39.8 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003627/0.5251, allocations: 20.78 kB / 381.9 MB, free: 39.79 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.658e-05/0.5252, allocations: 17.89 kB / 381.9 MB, free: 39.78 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.0003013/0.5255, allocations: 138.9 kB / 382 MB, free: 39.65 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.17e-05/0.5257, allocations: 21.69 kB / 382 MB, free: 39.64 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001332/0.5258, allocations: 29.2 kB / 382.1 MB, free: 39.62 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.249e-05/0.5258, allocations: 6.703 kB / 382.1 MB, free: 39.61 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.024e-05/0.5259, allocations: 0 / 382.1 MB, free: 39.61 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.048e-05/0.5259, allocations: 4.859 kB / 382.1 MB, free: 39.61 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005594/0.5265, allocations: 286.1 kB / 382.4 MB, free: 39.33 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.27e-06/0.5265, allocations: 3.938 kB / 382.4 MB, free: 39.33 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005061/0.527, allocations: 32.05 kB / 382.4 MB, free: 39.32 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.145e-05/0.5271, allocations: 1.031 kB / 382.4 MB, free: 39.32 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.388e-05/0.5271, allocations: 6.344 kB / 382.4 MB, free: 39.32 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.556e-06/0.5271, allocations: 5 kB / 382.4 MB, free: 39.32 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.731e-06/0.5272, allocations: 3.953 kB / 382.4 MB, free: 39.31 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001165/0.5283, allocations: 285 kB / 382.7 MB, free: 39.14 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00014/0.5285, allocations: 94.7 kB / 382.8 MB, free: 39.03 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.795e-05/0.5286, allocations: 6.281 kB / 382.8 MB, free: 39.03 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002548/0.5289, allocations: 12.55 kB / 382.8 MB, free: 39.02 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.447e-05/0.529, allocations: 17.28 kB / 382.8 MB, free: 39.01 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.834e-05/0.5291, allocations: 5.5 kB / 382.8 MB, free: 39.01 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004099/0.5295, allocations: 187.4 kB / 383 MB, free: 38.88 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.41e-07/0.5296, allocations: 1.094 kB / 383 MB, free: 38.88 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007445/0.5303, allocations: 56.03 kB / 383.1 MB, free: 38.87 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.001798/0.5321, allocations: 409.9 kB / 383.5 MB, free: 38.55 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008326/0.533, allocations: 147.1 kB / 383.6 MB, free: 38.48 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.651e-06/0.5331, allocations: 0 / 383.6 MB, free: 38.48 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003697/0.5335, allocations: 66.84 kB / 383.7 MB, free: 38.46 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007058/0.5342, allocations: 54.02 kB / 383.7 MB, free: 38.43 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002156/0.5364, allocations: 0.6691 MB / 384.4 MB, free: 37.91 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003498/0.5368, allocations: 0.7529 MB / 385.1 MB, free: 37.18 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001837/0.537, allocations: 22.5 kB / 385.2 MB, free: 37.18 MB / 298.7 MB Notification: Performance of SimCode: time 1.523e-06/0.5371, allocations: 0 / 385.2 MB, free: 37.18 MB / 298.7 MB Notification: Performance of Templates: time 0.01235/0.5494, allocations: 3.074 MB / 388.2 MB, free: 34.77 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/jenkins1/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