Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.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: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002444/0.002444, allocations: 186.2 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.037/2.037, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.001175/0.001174, allocations: 95.48 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003943/0.0003943, allocations: 12 kB / 327.1 MB, free: 88 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3285/0.3289, allocations: 47.57 MB / 374.6 MB, free: 45.29 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1601/0.489, allocations: 100 MB / 474.7 MB, free: 12.56 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003174/0.4894, allocations: 87.95 kB / 474.7 MB, free: 12.47 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4056/0.8951, allocations: 30.85 MB / 0.4937 GB, free: 95.59 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.975e-06/0.8951, allocations: 0 / 0.4937 GB, free: 95.59 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001198/0.8953, allocations: 27.2 kB / 0.4938 GB, free: 95.59 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.005238/0.9005, allocations: 1.55 MB / 0.4953 GB, free: 94.79 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.096e-05/0.9006, allocations: 9.812 kB / 0.4953 GB, free: 94.79 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005103/0.9011, allocations: 171.3 kB / 0.4955 GB, free: 94.74 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001026/0.9021, allocations: 199.1 kB / 0.4956 GB, free: 94.66 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002704/0.9049, allocations: 0.8551 MB / 0.4965 GB, free: 94.33 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002051/0.9051, allocations: 115.3 kB / 0.4966 GB, free: 94.3 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002891/0.9054, allocations: 107.9 kB / 0.4967 GB, free: 94.3 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003244/0.9087, allocations: 1.136 MB / 0.4978 GB, free: 94.05 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.229e-05/0.9088, allocations: 13.28 kB / 0.4978 GB, free: 94.05 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001567/0.909, allocations: 43.78 kB / 0.4979 GB, free: 94.05 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.521e-05/0.909, allocations: 26.69 kB / 0.4979 GB, free: 94.05 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002886/0.9119, allocations: 0.7866 MB / 0.4987 GB, free: 94.04 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009679/0.9216, allocations: 3.937 MB / 0.5025 GB, free: 92.63 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002721/0.9244, allocations: 0.6031 MB / 0.5031 GB, free: 92.6 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001004/0.9246, allocations: 13.19 kB / 0.5031 GB, free: 92.6 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001025/0.9256, allocations: 313.3 kB / 0.5034 GB, free: 92.54 MB / 378.7 MB Notification: Performance of pre-optimization done (n=63): time 3.717e-06/0.9256, allocations: 1.594 kB / 0.5034 GB, free: 92.54 MB / 378.7 MB Notification: Performance of matching and sorting (n=66): time 0.007572/0.9332, allocations: 2.117 MB / 0.5055 GB, free: 91.8 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001361/0.9334, allocations: 481.2 kB / 0.5059 GB, free: 91.23 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0019/0.9353, allocations: 0.9404 MB / 0.5068 GB, free: 91.08 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001702/0.9355, allocations: 39.52 kB / 0.5069 GB, free: 91.05 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004949/0.936, allocations: 0.6325 MB / 0.5075 GB, free: 90.58 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002519/0.9363, allocations: 231.6 kB / 0.5077 GB, free: 90.41 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.391e-05/0.9364, allocations: 23.91 kB / 0.5077 GB, free: 90.39 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.333e-05/0.9365, allocations: 352.6 kB / 0.5081 GB, free: 90.06 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008716/0.9374, allocations: 253 kB / 0.5083 GB, free: 89.98 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001162/0.9386, allocations: 0.7154 MB / 0.509 GB, free: 89.3 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001059/0.9396, allocations: 411.9 kB / 0.5094 GB, free: 89.09 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.308e-06/0.9397, allocations: 3.375 kB / 0.5094 GB, free: 89.09 MB / 378.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.002933/0.9426, allocations: 1.09 MB / 0.5105 GB, free: 88.66 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.19e-05/0.9427, allocations: 63.34 kB / 0.5105 GB, free: 88.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.247e-05/0.9427, allocations: 11.47 kB / 0.5105 GB, free: 88.6 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008232/0.9436, allocations: 184.2 kB / 0.5107 GB, free: 88.55 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001307/0.9449, allocations: 211.8 kB / 0.5109 GB, free: 88.53 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005453/0.9504, allocations: 3.595 MB / 0.5144 GB, free: 85.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001701/0.9521, allocations: 86.09 kB / 0.5145 GB, free: 85.37 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001481/0.9523, allocations: 46.72 kB / 0.5146 GB, free: 85.36 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (114): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {6 9} Notification: Performance of prepare postOptimizeDAE: time 0.0007598/0.9531, allocations: 292.8 kB / 0.5148 GB, free: 85.14 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003124/0.9534, allocations: 125.9 kB / 0.515 GB, free: 85.07 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002376/0.9558, allocations: 0.7283 MB / 0.5157 GB, free: 84.75 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.35e-05/0.9559, allocations: 16.94 kB / 0.5157 GB, free: 84.74 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.311e-06/0.9559, allocations: 1.625 kB / 0.5157 GB, free: 84.74 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001834/0.9577, allocations: 0.9585 MB / 0.5166 GB, free: 84.01 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004639/0.9624, allocations: 1.811 MB / 0.5184 GB, free: 83.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.969e-06/0.9624, allocations: 2.812 kB / 0.5184 GB, free: 83.07 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009145/0.9634, allocations: 111.2 kB / 0.5185 GB, free: 83.06 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006731/0.9641, allocations: 134 kB / 0.5186 GB, free: 83.01 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.651e-05/0.9641, allocations: 17.83 kB / 0.5187 GB, free: 83 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004324/0.9685, allocations: 3.302 MB / 0.5219 GB, free: 80.02 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.008e-06/0.9685, allocations: 4.062 kB / 0.5219 GB, free: 80.01 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00317/0.9717, allocations: 1.199 MB / 0.523 GB, free: 79.3 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007982/0.9726, allocations: 250.8 kB / 0.5233 GB, free: 79.11 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002702/0.9729, allocations: 19.48 kB / 0.5233 GB, free: 79.09 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001031/0.9739, allocations: 49.8 kB / 0.5234 GB, free: 79.08 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000222/0.9741, allocations: 58.02 kB / 0.5234 GB, free: 79.07 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.186e-05/0.9742, allocations: 23.05 kB / 0.5234 GB, free: 79.06 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001385/0.9756, allocations: 0.7055 MB / 0.5241 GB, free: 78.76 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.9756, allocations: 0 / 0.5241 GB, free: 78.76 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001921/0.9776, allocations: 361 kB / 0.5245 GB, free: 78.71 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,dcpm.la.i,armature.T,core.T) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 49 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {1 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.003969/0.9816, allocations: 2.46 MB / 0.5269 GB, free: 76.96 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003082/0.9847, allocations: 1.12 MB / 0.528 GB, free: 76.34 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.468e-06/0.9848, allocations: 3.906 kB / 0.528 GB, free: 76.34 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001467/0.9862, allocations: 0.5616 MB / 0.5285 GB, free: 75.99 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002378/0.9886, allocations: 307 kB / 0.5288 GB, free: 75.88 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009629/0.9983, allocations: 11.44 MB / 0.54 GB, free: 65.56 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006579/0.999, allocations: 1.116 MB / 0.5411 GB, free: 64.84 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008761/0.9999, allocations: 475.7 kB / 0.5415 GB, free: 64.48 MB / 378.7 MB Notification: Performance of SimCode: time 1.202e-06/0.9999, allocations: 0 / 0.5415 GB, free: 64.48 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.077/4.077, allocations: 31.05 MB / 0.5718 GB, free: 38.04 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat does not exist to compare? outputFormat=mat