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.002443/0.002443, allocations: 181.3 kB / 13.66 MB, free: 1.664 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.281/2.281, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001113/0.001112, allocations: 98.62 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.472e-05/3.489e-05, allocations: 4 kB / 321.6 MB, free: 17.74 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.12/0.12, allocations: 47.57 MB / 369.2 MB, free: 2.109 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4653/0.5854, allocations: 99.93 MB / 469.1 MB, free: 9.559 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00034/0.5858, allocations: 82.25 kB / 469.2 MB, free: 9.516 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1392/0.7251, allocations: 30.85 MB / 0.4883 GB, free: 12.05 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.514e-06/0.7252, allocations: 0 / 0.4883 GB, free: 12.05 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001224/0.7253, allocations: 27.98 kB / 0.4884 GB, free: 12.03 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.004393/0.7297, allocations: 1.379 MB / 0.4897 GB, free: 10.59 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.694e-05/0.7298, allocations: 8.031 kB / 0.4897 GB, free: 10.58 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004687/0.7303, allocations: 160.8 kB / 0.4899 GB, free: 10.41 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001026/0.7313, allocations: 198.5 kB / 0.4901 GB, free: 10.21 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002937/0.7343, allocations: 0.8476 MB / 0.4909 GB, free: 9.324 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002342/0.7345, allocations: 115.8 kB / 0.491 GB, free: 9.203 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003329/0.7349, allocations: 111.9 kB / 0.4911 GB, free: 9.094 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003419/0.7383, allocations: 1.084 MB / 0.4922 GB, free: 7.918 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.796e-05/0.7385, allocations: 0 / 0.4922 GB, free: 7.918 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001871/0.7387, allocations: 48 kB / 0.4922 GB, free: 7.871 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.615e-05/0.7387, allocations: 28 kB / 0.4922 GB, free: 7.844 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002604/0.7413, allocations: 0.6913 MB / 0.4929 GB, free: 7.148 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01086/0.7522, allocations: 3.942 MB / 0.4968 GB, free: 3.012 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002437/0.7547, allocations: 0.5498 MB / 0.4973 GB, free: 2.445 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000721/0.7555, allocations: 244.8 kB / 0.4975 GB, free: 2.203 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.073e-05/0.7556, allocations: 8.562 kB / 0.4975 GB, free: 2.195 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008111/0.7564, allocations: 275 kB / 0.4978 GB, free: 1.918 MB / 378.7 MB Notification: Performance of pre-optimization done (n=63): time 4.258e-06/0.7565, allocations: 0 / 0.4978 GB, free: 1.918 MB / 378.7 MB Notification: Performance of matching and sorting (n=66): time 0.005153/0.7616, allocations: 1.536 MB / 0.4993 GB, free: 328 kB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003321/0.762, allocations: 483.1 kB / 0.4998 GB, free: 15.74 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002351/0.7644, allocations: 0.921 MB / 0.5007 GB, free: 14.8 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002118/0.7646, allocations: 37.7 kB / 0.5007 GB, free: 14.76 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007891/0.7654, allocations: 0.6371 MB / 0.5013 GB, free: 14.12 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003831/0.7658, allocations: 236.7 kB / 0.5015 GB, free: 13.88 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.209e-05/0.7659, allocations: 20 kB / 0.5016 GB, free: 13.86 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002016/0.7661, allocations: 350.8 kB / 0.5019 GB, free: 13.51 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007107/0.7669, allocations: 222.6 kB / 0.5021 GB, free: 13.29 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001187/0.7681, allocations: 0.6754 MB / 0.5028 GB, free: 12.41 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001041/0.7691, allocations: 388 kB / 0.5031 GB, free: 12.02 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.082e-05/0.7692, allocations: 4 kB / 0.5031 GB, free: 12.02 MB / 394.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.003185/0.7724, allocations: 1.048 MB / 0.5042 GB, free: 10.95 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.395e-05/0.7725, allocations: 59.41 kB / 0.5042 GB, free: 10.88 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.679e-05/0.7725, allocations: 12 kB / 0.5042 GB, free: 10.86 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001183/0.7737, allocations: 193.7 kB / 0.5044 GB, free: 10.67 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001503/0.7753, allocations: 215.6 kB / 0.5046 GB, free: 10.46 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006779/0.7821, allocations: 3.538 MB / 0.5081 GB, free: 6.652 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001799/0.7839, allocations: 75.97 kB / 0.5081 GB, free: 6.578 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001822/0.7842, allocations: 48 kB / 0.5082 GB, free: 6.531 MB / 394.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 () * 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: 2 {(1,100.0%) 1,(3,88.9%) 12} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000347/0.7845, allocations: 180.7 kB / 0.5084 GB, free: 6.348 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003156/0.7848, allocations: 126.5 kB / 0.5085 GB, free: 6.223 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00247/0.7873, allocations: 0.6959 MB / 0.5092 GB, free: 5.508 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.425e-05/0.7874, allocations: 4 kB / 0.5092 GB, free: 5.504 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.659e-06/0.7874, allocations: 4 kB / 0.5092 GB, free: 5.5 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002112/0.7895, allocations: 0.9256 MB / 0.5101 GB, free: 4.461 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005153/0.7947, allocations: 1.777 MB / 0.5118 GB, free: 2.598 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.945e-06/0.7948, allocations: 0 / 0.5118 GB, free: 2.598 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001004/0.7958, allocations: 116.1 kB / 0.5119 GB, free: 2.484 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007928/0.7966, allocations: 133.8 kB / 0.512 GB, free: 2.348 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.721e-05/0.7967, allocations: 15.98 kB / 0.5121 GB, free: 2.332 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005119/0.8019, allocations: 3.259 MB / 0.5152 GB, free: 14.8 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.146e-06/0.8019, allocations: 7.969 kB / 0.5153 GB, free: 14.79 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003158/0.8051, allocations: 1.122 MB / 0.5164 GB, free: 13.6 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009084/0.8061, allocations: 247.6 kB / 0.5166 GB, free: 13.34 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002529/0.8063, allocations: 16 kB / 0.5166 GB, free: 13.32 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001081/0.8074, allocations: 51.97 kB / 0.5167 GB, free: 13.27 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002324/0.8077, allocations: 64.36 kB / 0.5167 GB, free: 13.21 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.109e-05/0.8078, allocations: 16 kB / 0.5167 GB, free: 13.19 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001741/0.8095, allocations: 0.6991 MB / 0.5174 GB, free: 12.48 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.52e-07/0.8095, allocations: 4 kB / 0.5174 GB, free: 12.48 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002177/0.8117, allocations: 364.1 kB / 0.5178 GB, free: 12.12 MB / 410.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) * 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.004479/0.8163, allocations: 2.372 MB / 0.5201 GB, free: 9.668 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003499/0.8198, allocations: 1.053 MB / 0.5211 GB, free: 8.574 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.318e-06/0.8199, allocations: 0 / 0.5211 GB, free: 8.574 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001491/0.8214, allocations: 0.513 MB / 0.5216 GB, free: 8.035 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002627/0.8241, allocations: 301.5 kB / 0.5219 GB, free: 7.742 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007117/0.8312, allocations: 1.853 MB / 0.5237 GB, free: 5.82 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001045/0.8323, allocations: 1.113 MB / 0.5248 GB, free: 4.676 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001105/0.8335, allocations: 479.2 kB / 0.5252 GB, free: 4.207 MB / 410.7 MB Notification: Performance of SimCode: time 1.684e-06/0.8335, allocations: 0 / 0.5252 GB, free: 4.207 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.584/4.417, allocations: 31.39 MB / 0.5559 GB, free: 110.5 MB / 410.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