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.0009051/0.0009086, allocations: 94.59 kB / 16.3 MB, free: 6.457 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.0009529/0.000953, allocations: 182 kB / 17.2 MB, free: 6.34 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.383/1.383, allocations: 223.2 MB / 241.1 MB, free: 5.469 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002661/0.0002661, allocations: 9.344 kB / 300.8 MB, free: 6.043 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.1129, allocations: 50.42 MB / 351.2 MB, free: 11.68 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.002519/0.1154, allocations: 1.785 MB / 353 MB, free: 9.879 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001714/0.1172, allocations: 0.9983 MB / 354 MB, free: 8.875 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001436/0.1174, allocations: 7.938 kB / 354 MB, free: 8.867 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003325/0.1177, allocations: 75.75 kB / 354.1 MB, free: 8.793 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002842/0.118, allocations: 119.6 kB / 354.2 MB, free: 8.676 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004119/0.1184, allocations: 127.7 kB / 354.3 MB, free: 8.551 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003098/0.1187, allocations: 195.6 kB / 354.5 MB, free: 8.359 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001977/0.1189, allocations: 72.7 kB / 354.6 MB, free: 8.281 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001327/0.1191, allocations: 91.69 kB / 354.7 MB, free: 8.191 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001572/0.1192, allocations: 95.61 kB / 354.8 MB, free: 8.098 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.867e-05/0.1193, allocations: 16 kB / 354.8 MB, free: 8.082 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001221/0.1194, allocations: 35.86 kB / 354.8 MB, free: 8.047 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.097e-05/0.1195, allocations: 43.84 kB / 354.9 MB, free: 8.004 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.601e-05/0.1196, allocations: 65.58 kB / 354.9 MB, free: 7.934 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000256/0.1198, allocations: 203.5 kB / 355.1 MB, free: 7.734 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.134e-06/0.1198, allocations: 4 kB / 355.1 MB, free: 7.73 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.143e-06/0.1198, allocations: 0 / 355.1 MB, free: 7.73 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.981e-06/0.1198, allocations: 0 / 355.1 MB, free: 7.73 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.0008348/0.1207, allocations: 0.5106 MB / 355.6 MB, free: 7.172 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.552e-05/0.1207, allocations: 8.031 kB / 355.6 MB, free: 7.164 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.813e-05/0.1208, allocations: 50.55 kB / 355.7 MB, free: 7.105 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002158/0.121, allocations: 31.67 kB / 355.7 MB, free: 7.074 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003765/0.1214, allocations: 251.5 kB / 356 MB, free: 6.785 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.388e-05/0.1215, allocations: 12 kB / 356 MB, free: 6.773 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.709e-05/0.1215, allocations: 12 kB / 356 MB, free: 6.762 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003486/0.1219, allocations: 165.3 kB / 356.2 MB, free: 6.594 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.377e-05/0.1219, allocations: 0 / 356.2 MB, free: 6.594 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.564e-05/0.1219, allocations: 11.98 kB / 356.2 MB, free: 6.582 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.01e-05/0.1219, allocations: 7.953 kB / 356.2 MB, free: 6.574 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002356/0.1222, allocations: 111.9 kB / 356.3 MB, free: 6.465 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008631/0.123, allocations: 0.5547 MB / 356.8 MB, free: 5.859 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003208/0.1234, allocations: 166.4 kB / 357 MB, free: 5.688 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.562e-05/0.1234, allocations: 7.984 kB / 357 MB, free: 5.68 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003448/0.1238, allocations: 115.6 kB / 357.1 MB, free: 5.555 MB / 286.1 MB Notification: Performance of pre-optimization done (n=20): time 1.944e-06/0.1238, allocations: 4 kB / 357.1 MB, free: 5.551 MB / 286.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004925/0.1243, allocations: 235.8 kB / 357.4 MB, free: 5.316 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.429e-05/0.1244, allocations: 55.41 kB / 357.4 MB, free: 5.25 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002458/0.1246, allocations: 253 kB / 357.7 MB, free: 4.996 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.314e-05/0.1246, allocations: 25.7 kB / 357.7 MB, free: 4.965 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001221/0.1248, allocations: 152.3 kB / 357.8 MB, free: 4.812 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.631e-05/0.1248, allocations: 63.09 kB / 357.9 MB, free: 4.75 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.42e-05/0.1249, allocations: 8 kB / 357.9 MB, free: 4.742 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001566/0.125, allocations: 338.7 kB / 358.2 MB, free: 4.402 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001118/0.1251, allocations: 51.97 kB / 358.3 MB, free: 4.352 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001248/0.1253, allocations: 79.59 kB / 358.4 MB, free: 4.262 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001289/0.1254, allocations: 66.42 kB / 358.4 MB, free: 4.199 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.1254, allocations: 0 / 358.4 MB, free: 4.199 MB / 286.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003226/0.1257, allocations: 204.9 kB / 358.6 MB, free: 3.996 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.008e-05/0.1258, allocations: 8 kB / 358.6 MB, free: 3.988 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.155e-06/0.1258, allocations: 0 / 358.6 MB, free: 3.988 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.935e-05/0.1258, allocations: 4 kB / 358.6 MB, free: 3.984 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002554/0.1261, allocations: 47.92 kB / 358.7 MB, free: 3.938 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.218e-06/0.1261, allocations: 3.984 kB / 358.7 MB, free: 3.934 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001255/0.1262, allocations: 19.94 kB / 358.7 MB, free: 3.914 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.885e-05/0.1263, allocations: 12 kB / 358.7 MB, free: 3.902 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 ($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.0001567/0.1264, allocations: 153.5 kB / 358.9 MB, free: 3.742 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.077e-05/0.1265, allocations: 19.72 kB / 358.9 MB, free: 3.723 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.955e-05/0.1265, allocations: 30.17 kB / 358.9 MB, free: 3.691 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.948e-06/0.1265, allocations: 4 kB / 358.9 MB, free: 3.688 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.012e-06/0.1266, allocations: 0 / 358.9 MB, free: 3.688 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.1266, allocations: 0 / 358.9 MB, free: 3.688 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002965/0.1269, allocations: 293.3 kB / 359.2 MB, free: 3.352 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.1269, allocations: 0 / 359.2 MB, free: 3.352 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001824/0.1271, allocations: 39.97 kB / 359.2 MB, free: 3.312 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.09e-06/0.1271, allocations: 4 kB / 359.3 MB, free: 3.309 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.83e-05/0.1271, allocations: 4 kB / 359.3 MB, free: 3.305 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.1271, allocations: 0 / 359.3 MB, free: 3.305 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.1271, allocations: 4 kB / 359.3 MB, free: 3.301 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004941/0.1276, allocations: 272.7 kB / 359.5 MB, free: 3.016 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.447e-05/0.1277, allocations: 108.8 kB / 359.6 MB, free: 2.891 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.518e-05/0.1278, allocations: 4.062 kB / 359.6 MB, free: 2.887 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.498e-05/0.1279, allocations: 12 kB / 359.6 MB, free: 2.875 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.434e-05/0.1279, allocations: 15.97 kB / 359.7 MB, free: 2.859 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.943e-05/0.1279, allocations: 4 kB / 359.7 MB, free: 2.855 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001696/0.1281, allocations: 184.5 kB / 359.8 MB, free: 2.68 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1281, allocations: 0 / 359.8 MB, free: 2.68 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002934/0.1284, allocations: 63.89 kB / 359.9 MB, free: 2.617 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 (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.001682/0.1301, allocations: 1.13 MB / 361 MB, free: 1.625 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002947/0.1304, allocations: 137.9 kB / 361.2 MB, free: 1.492 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.1304, allocations: 0 / 361.2 MB, free: 1.492 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001257/0.1306, allocations: 71.92 kB / 361.2 MB, free: 1.422 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003825/0.1309, allocations: 56.7 kB / 361.3 MB, free: 1.359 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002503/0.1335, allocations: 1.863 MB / 363.2 MB, free: 15.45 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003827/0.1339, allocations: 0.756 MB / 363.9 MB, free: 14.66 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001265/0.134, allocations: 25.95 kB / 363.9 MB, free: 14.64 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001668/0.1342, allocations: 75.41 kB / 364 MB, free: 14.56 MB / 302.1 MB Notification: Performance of SimCode: time 8.41e-07/0.1342, allocations: 0 / 364 MB, free: 14.56 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02145/0.1556, allocations: 4.647 MB / 368.7 MB, free: 10.05 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002861/0.156, allocations: 218.7 kB / 368.9 MB, free: 9.809 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.891/2.047, allocations: 0 / 368.9 MB, free: 9.809 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/linux/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) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat does not exist to compare? outputFormat=mat