Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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="empty",numberOfIntervals=1440000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Thermal.HeatTransfer.Examples.Motor") translateModel(Modelica.Thermal.HeatTransfer.Examples.Motor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1440000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.0008415/0.0008414, allocations: 91.17 kB / 16.65 MB, free: 6.598 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.001024/0.001024, allocations: 178.6 kB / 17.56 MB, free: 6.199 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.662/1.662, allocations: 205.4 MB / 223.7 MB, free: 13.09 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.0007574/0.0007575, allocations: 8 kB / 280.7 MB, free: 3.449 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1183/0.119, allocations: 47.59 MB / 328.3 MB, free: 3.785 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003701/0.1228, allocations: 1.915 MB / 330.2 MB, free: 1.852 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002781/0.1256, allocations: 0.9403 MB / 331.2 MB, free: 0.9023 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003272/0.126, allocations: 0 / 331.2 MB, free: 0.9023 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006246/0.1266, allocations: 87.69 kB / 331.2 MB, free: 0.8164 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007714/0.1274, allocations: 111.4 kB / 331.4 MB, free: 0.707 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004788/0.1279, allocations: 107.8 kB / 331.5 MB, free: 0.6016 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004823/0.1284, allocations: 274.8 kB / 331.7 MB, free: 340 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002315/0.1287, allocations: 76.8 kB / 331.8 MB, free: 264 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000232/0.1289, allocations: 99.56 kB / 331.9 MB, free: 164 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002411/0.1292, allocations: 111.5 kB / 332 MB, free: 52 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.15e-05/0.1292, allocations: 8 kB / 332 MB, free: 44 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000171/0.1294, allocations: 39.98 kB / 332.1 MB, free: 4 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001395/0.1295, allocations: 55.7 kB / 332.1 MB, free: 15.95 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000285/0.1298, allocations: 129.1 kB / 332.2 MB, free: 15.82 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005039/0.1303, allocations: 263.3 kB / 332.5 MB, free: 15.56 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.1304, allocations: 0 / 332.5 MB, free: 15.56 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.016e-06/0.1304, allocations: 0 / 332.5 MB, free: 15.56 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.48e-05/0.1304, allocations: 0 / 332.5 MB, free: 15.56 MB / 286.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.001129/0.1315, allocations: 0.5031 MB / 333 MB, free: 15.01 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.303e-05/0.1316, allocations: 8.031 kB / 333 MB, free: 15 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002395/0.1319, allocations: 32.64 kB / 333 MB, free: 14.97 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005207/0.1324, allocations: 256.7 kB / 333.3 MB, free: 14.68 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.205e-05/0.1324, allocations: 8.375 kB / 333.3 MB, free: 14.67 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.305e-05/0.1325, allocations: 24.12 kB / 333.3 MB, free: 14.64 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003537/0.1328, allocations: 173.1 kB / 333.5 MB, free: 14.47 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.692e-05/0.1329, allocations: 4 kB / 333.5 MB, free: 14.46 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.276e-05/0.1329, allocations: 4 kB / 333.5 MB, free: 14.46 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.117e-06/0.1329, allocations: 4 kB / 333.5 MB, free: 14.46 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002581/0.1332, allocations: 115.9 kB / 333.6 MB, free: 14.34 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001319/0.1345, allocations: 0.5585 MB / 334.2 MB, free: 13.73 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003373/0.1349, allocations: 170.4 kB / 334.3 MB, free: 13.56 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000154/0.135, allocations: 88.83 kB / 334.4 MB, free: 13.47 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.858e-05/0.1351, allocations: 7.984 kB / 334.4 MB, free: 13.46 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003172/0.1354, allocations: 123.6 kB / 334.6 MB, free: 13.33 MB / 286.1 MB Notification: Performance of pre-optimization done (n=20): time 2.385e-06/0.1354, allocations: 0 / 334.6 MB, free: 13.33 MB / 286.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005462/0.136, allocations: 237.2 kB / 334.8 MB, free: 13.09 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.493e-05/0.136, allocations: 55.41 kB / 334.8 MB, free: 13.02 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002909/0.1363, allocations: 249 kB / 335.1 MB, free: 12.77 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.736e-05/0.1364, allocations: 29.7 kB / 335.1 MB, free: 12.73 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001302/0.1365, allocations: 144.3 kB / 335.3 MB, free: 12.59 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.819e-05/0.1366, allocations: 74.95 kB / 335.3 MB, free: 12.52 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.913e-05/0.1367, allocations: 25.7 kB / 335.4 MB, free: 12.48 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000194/0.1369, allocations: 338.8 kB / 335.7 MB, free: 12.14 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001255/0.137, allocations: 47.98 kB / 335.7 MB, free: 12.1 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001529/0.1372, allocations: 87.39 kB / 335.8 MB, free: 12 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004028/0.1376, allocations: 143.4 kB / 336 MB, free: 11.85 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.919e-06/0.1376, allocations: 0 / 336 MB, free: 11.85 MB / 286.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004013/0.138, allocations: 201.3 kB / 336.2 MB, free: 11.64 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.107e-05/0.138, allocations: 4 kB / 336.2 MB, free: 11.64 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.499e-05/0.1381, allocations: 4 kB / 336.2 MB, free: 11.64 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.336e-05/0.1381, allocations: 0 / 336.2 MB, free: 11.64 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000233/0.1383, allocations: 52 kB / 336.2 MB, free: 11.59 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.127e-05/0.1383, allocations: 11.88 kB / 336.2 MB, free: 11.57 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001375/0.1385, allocations: 23.75 kB / 336.2 MB, free: 11.55 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.815e-05/0.1385, allocations: 8 kB / 336.3 MB, free: 11.54 MB / 286.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.0001601/0.1387, allocations: 141.8 kB / 336.4 MB, free: 11.39 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.098e-05/0.1387, allocations: 19.81 kB / 336.4 MB, free: 11.38 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.227e-05/0.1388, allocations: 34.17 kB / 336.4 MB, free: 11.34 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.969e-06/0.1388, allocations: 4 kB / 336.4 MB, free: 11.34 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.15e-05/0.1389, allocations: 7.938 kB / 336.5 MB, free: 11.33 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.1389, allocations: 3.938 kB / 336.5 MB, free: 11.32 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003864/0.1393, allocations: 289.4 kB / 336.7 MB, free: 10.99 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.466e-06/0.1393, allocations: 0 / 336.7 MB, free: 10.99 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001821/0.1395, allocations: 35.98 kB / 336.8 MB, free: 10.96 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.1395, allocations: 0 / 336.8 MB, free: 10.96 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.853e-05/0.1395, allocations: 4 kB / 336.8 MB, free: 10.95 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.464e-06/0.1395, allocations: 0 / 336.8 MB, free: 10.95 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.1395, allocations: 3.938 kB / 336.8 MB, free: 10.95 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006138/0.1401, allocations: 288.8 kB / 337.1 MB, free: 10.65 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.997e-05/0.1403, allocations: 96.86 kB / 337.2 MB, free: 10.54 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.837e-05/0.1403, allocations: 4 kB / 337.2 MB, free: 10.53 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.391e-05/0.1404, allocations: 19.92 kB / 337.2 MB, free: 10.51 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.297e-05/0.1405, allocations: 7.984 kB / 337.2 MB, free: 10.5 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.386e-05/0.1405, allocations: 4 kB / 337.2 MB, free: 10.5 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0003185/0.1408, allocations: 188.5 kB / 337.4 MB, free: 10.32 MB / 286.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.1408, allocations: 8 kB / 337.4 MB, free: 10.31 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000321/0.1412, allocations: 59.92 kB / 337.4 MB, free: 10.25 MB / 286.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.001121/0.1423, allocations: 404.3 kB / 337.8 MB, free: 9.863 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003649/0.1427, allocations: 143.8 kB / 338 MB, free: 9.723 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.1427, allocations: 0 / 338 MB, free: 9.723 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00016/0.1428, allocations: 79.86 kB / 338.1 MB, free: 9.645 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004229/0.1433, allocations: 52.75 kB / 338.1 MB, free: 9.594 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001073/0.1444, allocations: 0.6598 MB / 338.8 MB, free: 8.91 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003411/0.1447, allocations: 0.7482 MB / 339.5 MB, free: 8.137 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001175/0.1448, allocations: 33.92 kB / 339.6 MB, free: 8.105 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.813e-05/0.1449, allocations: 23.44 kB / 339.6 MB, free: 8.082 MB / 286.1 MB Notification: Performance of SimCode: time 6.81e-07/0.1449, allocations: 0 / 339.6 MB, free: 8.082 MB / 286.1 MB Notification: Performance of Templates: time 0.006588/0.1515, allocations: 2.509 MB / 342.1 MB, free: 5.57 MB / 286.1 MB make -j1 -f Modelica_3.2.2_Modelica.Thermal.HeatTransfer.Examples.Motor.makefile (rm -f Modelica_3.2.2_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_3.2.2_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_3.2.2_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & ./Modelica_3.2.2_Modelica.Thermal.HeatTransfer.Examples.Motor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1)