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: "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001059/0.001059, allocations: 105.8 kB / 16.5 MB, free: 6.707 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.001117/0.001117, allocations: 190.6 kB / 17.43 MB, free: 6.066 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.231/1.231, allocations: 222.9 MB / 241.1 MB, free: 13.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00121/0.00121, allocations: 43.23 kB / 300.1 MB, free: 5.992 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1015, allocations: 49.46 MB / 349.5 MB, free: 4.527 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003782/0.1053, allocations: 2.27 MB / 351.8 MB, free: 2.238 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001825/0.1072, allocations: 1.068 MB / 352.9 MB, free: 1.164 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001794/0.1074, allocations: 4 kB / 352.9 MB, free: 1.16 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003695/0.1078, allocations: 79.69 kB / 352.9 MB, free: 1.082 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003116/0.1081, allocations: 103.4 kB / 353 MB, free: 0.9805 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003694/0.1085, allocations: 134.2 kB / 353.2 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002885/0.1088, allocations: 270.8 kB / 353.4 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001939/0.109, allocations: 77 kB / 353.5 MB, free: 0.5 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001586/0.1092, allocations: 103.6 kB / 353.6 MB, free: 408 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001567/0.1093, allocations: 123.5 kB / 353.7 MB, free: 284 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.203e-05/0.1094, allocations: 12 kB / 353.7 MB, free: 272 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001377/0.1095, allocations: 47.98 kB / 353.8 MB, free: 224 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.19e-05/0.1096, allocations: 55.7 kB / 353.8 MB, free: 168 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001104/0.1097, allocations: 111.4 kB / 354 MB, free: 56 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003145/0.11, allocations: 279.3 kB / 354.2 MB, free: 15.78 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.11, allocations: 0 / 354.2 MB, free: 15.78 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.32e-07/0.11, allocations: 0 / 354.2 MB, free: 15.78 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.232e-06/0.1101, allocations: 4 kB / 354.2 MB, free: 15.78 MB / 302.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.0007588/0.1108, allocations: 0.5381 MB / 354.8 MB, free: 15.19 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.584e-05/0.1109, allocations: 12.03 kB / 354.8 MB, free: 15.18 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.773e-05/0.1109, allocations: 50.73 kB / 354.8 MB, free: 15.12 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001402/0.1111, allocations: 32.56 kB / 354.9 MB, free: 15.09 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002853/0.1114, allocations: 260.7 kB / 355.1 MB, free: 14.8 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.772e-05/0.1114, allocations: 12.31 kB / 355.1 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.628e-05/0.1114, allocations: 23.94 kB / 355.1 MB, free: 14.76 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003153/0.1118, allocations: 157.4 kB / 355.3 MB, free: 14.6 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.275e-05/0.1118, allocations: 4 kB / 355.3 MB, free: 14.6 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.146e-05/0.1118, allocations: 8 kB / 355.3 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.274e-06/0.1118, allocations: 4 kB / 355.3 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002368/0.1121, allocations: 115.9 kB / 355.4 MB, free: 14.47 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008814/0.113, allocations: 0.5699 MB / 356 MB, free: 13.85 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003131/0.1133, allocations: 158.5 kB / 356.2 MB, free: 13.69 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001512/0.1134, allocations: 92.77 kB / 356.2 MB, free: 13.59 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.96e-05/0.1135, allocations: 4 kB / 356.2 MB, free: 13.59 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000284/0.1138, allocations: 115.3 kB / 356.4 MB, free: 13.46 MB / 302.1 MB Notification: Performance of pre-optimization done (n=20): time 1.673e-06/0.1138, allocations: 0 / 356.4 MB, free: 13.46 MB / 302.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005227/0.1143, allocations: 236.4 kB / 356.6 MB, free: 13.23 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.205e-05/0.1144, allocations: 51.41 kB / 356.6 MB, free: 13.17 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002556/0.1146, allocations: 253 kB / 356.9 MB, free: 12.91 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.086e-05/0.1147, allocations: 29.7 kB / 356.9 MB, free: 12.88 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001006/0.1148, allocations: 148.3 kB / 357.1 MB, free: 12.73 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.686e-05/0.1148, allocations: 71.02 kB / 357.1 MB, free: 12.66 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.597e-05/0.1149, allocations: 41.72 kB / 357.2 MB, free: 12.61 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001348/0.1151, allocations: 338.7 kB / 357.5 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001112/0.1152, allocations: 51.97 kB / 357.6 MB, free: 12.22 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000132/0.1153, allocations: 83.34 kB / 357.6 MB, free: 12.13 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002272/0.1156, allocations: 147.4 kB / 357.8 MB, free: 11.97 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.1156, allocations: 0 / 357.8 MB, free: 11.97 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003364/0.1159, allocations: 206.7 kB / 358 MB, free: 11.77 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.628e-05/0.1159, allocations: 4 kB / 358 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.314e-06/0.116, allocations: 4 kB / 358 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.423e-05/0.116, allocations: 4.094 kB / 358 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002136/0.1162, allocations: 51.86 kB / 358 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.829e-06/0.1162, allocations: 4 kB / 358 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001161/0.1163, allocations: 27.73 kB / 358.1 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.437e-05/0.1164, allocations: 7.984 kB / 358.1 MB, free: 11.66 MB / 302.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.0001254/0.1165, allocations: 145.8 kB / 358.2 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.324e-05/0.1165, allocations: 19.81 kB / 358.2 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.332e-05/0.1166, allocations: 34.17 kB / 358.3 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.1166, allocations: 3.938 kB / 358.3 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.62e-06/0.1166, allocations: 0 / 358.3 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.1166, allocations: 0 / 358.3 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002717/0.1169, allocations: 285.4 kB / 358.6 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.1169, allocations: 0 / 358.6 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001708/0.1171, allocations: 31.98 kB / 358.6 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.1171, allocations: 0 / 358.6 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.914e-05/0.1171, allocations: 7.984 kB / 358.6 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.078e-06/0.1171, allocations: 3.938 kB / 358.6 MB, free: 11.08 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.674e-06/0.1171, allocations: 0 / 358.6 MB, free: 11.08 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004638/0.1176, allocations: 284.7 kB / 358.9 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.378e-05/0.1177, allocations: 100.8 kB / 359 MB, free: 10.67 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.86e-05/0.1177, allocations: 11.92 kB / 359 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.2e-05/0.1178, allocations: 12 kB / 359 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.851e-05/0.1179, allocations: 11.98 kB / 359 MB, free: 10.63 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.079e-05/0.1179, allocations: 11.94 kB / 359 MB, free: 10.62 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001893/0.1181, allocations: 188.5 kB / 359.2 MB, free: 10.44 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1181, allocations: 0 / 359.2 MB, free: 10.44 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002697/0.1184, allocations: 55.94 kB / 359.3 MB, free: 10.39 MB / 302.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.001603/0.12, allocations: 1.122 MB / 360.4 MB, free: 9.398 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003036/0.1203, allocations: 143.8 kB / 360.5 MB, free: 9.258 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.1203, allocations: 3.938 kB / 360.5 MB, free: 9.254 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001321/0.1205, allocations: 75.91 kB / 360.6 MB, free: 9.18 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003539/0.1208, allocations: 46.52 kB / 360.7 MB, free: 9.133 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003086/0.1239, allocations: 2.444 MB / 363.1 MB, free: 6.594 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003538/0.1243, allocations: 0.7404 MB / 363.8 MB, free: 5.824 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001264/0.1244, allocations: 33.92 kB / 363.9 MB, free: 5.789 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000117/0.1246, allocations: 71.41 kB / 363.9 MB, free: 5.723 MB / 302.1 MB Notification: Performance of SimCode: time 7.51e-07/0.1246, allocations: 0 / 363.9 MB, free: 5.723 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01602/0.1406, allocations: 4.947 MB / 368.9 MB, free: 0.8984 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002184/0.1408, allocations: 237.2 kB / 369.1 MB, free: 0.6445 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.811/1.951, allocations: 0 / 369.1 MB, free: 0.6445 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_Motor_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_Motor.fmu > Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1)