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.002316/0.002316, allocations: 179.2 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.155/2.155, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001863/0.001862, allocations: 95.09 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.525e-05/2.535e-05, allocations: 3.984 kB / 314.9 MB, free: 9.039 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3711/0.3712, allocations: 47.56 MB / 362.4 MB, free: 45.86 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1744/0.5456, allocations: 99.27 MB / 461.7 MB, free: 2.973 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003288/0.546, allocations: 83.95 kB / 461.8 MB, free: 2.891 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.1398/0.6858, allocations: 30.45 MB / 492.2 MB, free: 4.352 MB / 379.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.6859, allocations: 0 / 492.2 MB, free: 4.352 MB / 379.1 MB Notification: Performance of Transformations before backend: time 0.0001409/0.686, allocations: 28 kB / 492.3 MB, free: 4.324 MB / 379.1 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.004324/0.6904, allocations: 1.368 MB / 493.6 MB, free: 2.895 MB / 379.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.533e-05/0.6905, allocations: 12.03 kB / 493.6 MB, free: 2.883 MB / 379.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001123/0.6916, allocations: 194.1 kB / 493.8 MB, free: 2.691 MB / 379.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002833/0.6944, allocations: 0.8517 MB / 494.7 MB, free: 1.793 MB / 379.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001958/0.6947, allocations: 83.83 kB / 494.8 MB, free: 1.703 MB / 379.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002708/0.695, allocations: 71.91 kB / 494.8 MB, free: 1.633 MB / 379.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002145/0.6971, allocations: 0.633 MB / 495.5 MB, free: 0.9961 MB / 379.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002492/0.6997, allocations: 0.9315 MB / 496.4 MB, free: 15.98 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.705e-05/0.6998, allocations: 3.938 kB / 496.4 MB, free: 15.97 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001258/0.6999, allocations: 4 kB / 496.4 MB, free: 15.97 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.618e-05/0.6999, allocations: 24 kB / 496.4 MB, free: 15.95 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01018/0.7101, allocations: 3.728 MB / 0.4884 GB, free: 12.04 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00212/0.7123, allocations: 0.5063 MB / 0.4889 GB, free: 11.51 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006018/0.7129, allocations: 220.2 kB / 0.4891 GB, free: 11.3 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.927e-05/0.713, allocations: 12.55 kB / 0.4892 GB, free: 11.29 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006697/0.7137, allocations: 250 kB / 0.4894 GB, free: 11.03 MB / 395.1 MB Notification: Performance of pre-optimization done (n=63): time 3.246e-06/0.7137, allocations: 0 / 0.4894 GB, free: 11.03 MB / 395.1 MB Notification: Performance of matching and sorting (n=66): time 0.004138/0.7179, allocations: 1.411 MB / 0.4908 GB, free: 9.559 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002761/0.7182, allocations: 483.1 kB / 0.4912 GB, free: 8.973 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001526/0.7197, allocations: 0.7362 MB / 0.492 GB, free: 8.219 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 7.77e-05/0.7198, allocations: 29.7 kB / 0.492 GB, free: 8.184 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007228/0.7205, allocations: 0.664 MB / 0.4926 GB, free: 7.512 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002747/0.7208, allocations: 220.8 kB / 0.4928 GB, free: 7.293 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.038e-05/0.7209, allocations: 3.938 kB / 0.4928 GB, free: 7.289 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001879/0.7211, allocations: 346.8 kB / 0.4932 GB, free: 6.941 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005815/0.7217, allocations: 210.5 kB / 0.4934 GB, free: 6.738 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001068/0.7228, allocations: 0.6366 MB / 0.494 GB, free: 5.895 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007957/0.7236, allocations: 310.5 kB / 0.4943 GB, free: 5.594 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.449e-05/0.7236, allocations: 4 kB / 0.4943 GB, free: 5.59 MB / 395.1 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.002777/0.7264, allocations: 0.8807 MB / 0.4952 GB, free: 4.695 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.896e-05/0.7265, allocations: 64.66 kB / 0.4952 GB, free: 4.621 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.318e-05/0.7265, allocations: 12 kB / 0.4952 GB, free: 4.609 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001115/0.7277, allocations: 190.4 kB / 0.4954 GB, free: 4.418 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001358/0.729, allocations: 207.7 kB / 0.4956 GB, free: 4.215 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00606/0.7351, allocations: 3.41 MB / 0.4989 GB, free: 0.5781 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001531/0.7367, allocations: 63.88 kB / 0.499 GB, free: 0.5156 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001037/0.7368, allocations: 44 kB / 0.499 GB, free: 484 kB / 395.1 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,(2,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002716/0.7371, allocations: 148.7 kB / 0.4992 GB, free: 328 kB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.2785/1.016, allocations: 0.601 MB / 0.4998 GB, free: 106.4 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004294/1.016, allocations: 107.8 kB / 0.4999 GB, free: 106.4 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002178/1.018, allocations: 0.6214 MB / 0.5005 GB, free: 106.4 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.376e-05/1.018, allocations: 7 kB / 0.5005 GB, free: 106.4 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.788e-06/1.018, allocations: 3 kB / 0.5005 GB, free: 106.4 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001627/1.02, allocations: 0.8823 MB / 0.5014 GB, free: 105.8 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004362/1.024, allocations: 1.599 MB / 0.5029 GB, free: 105.4 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.065e-05/1.024, allocations: 3.094 kB / 0.5029 GB, free: 105.4 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001028/1.025, allocations: 115.7 kB / 0.503 GB, free: 105.4 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007451/1.026, allocations: 128.8 kB / 0.5031 GB, free: 105.4 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.067e-05/1.026, allocations: 10.94 kB / 0.5032 GB, free: 105.4 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004027/1.03, allocations: 3.132 MB / 0.5062 GB, free: 103 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.008e-05/1.03, allocations: 4.906 kB / 0.5062 GB, free: 103 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002714/1.033, allocations: 1.037 MB / 0.5072 GB, free: 102.6 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000774/1.034, allocations: 233.5 kB / 0.5075 GB, free: 102.5 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002173/1.034, allocations: 11.12 kB / 0.5075 GB, free: 102.5 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001009/1.035, allocations: 35.3 kB / 0.5075 GB, free: 102.5 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002561/1.036, allocations: 64.12 kB / 0.5076 GB, free: 102.5 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.191e-05/1.036, allocations: 19.08 kB / 0.5076 GB, free: 102.5 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.001348/1.037, allocations: 0.5435 MB / 0.5081 GB, free: 102.4 MB / 395.1 MB Notification: Performance of sort global known variables: time 6.31e-07/1.037, allocations: 4.094 kB / 0.5081 GB, free: 102.4 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.002239/1.039, allocations: 297.2 kB / 0.5084 GB, free: 102.4 MB / 395.1 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.003659/1.043, allocations: 2.272 MB / 0.5106 GB, free: 101 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.003023/1.046, allocations: 0.95 MB / 0.5115 GB, free: 100.7 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 1.065e-05/1.046, allocations: 3.312 kB / 0.5116 GB, free: 100.7 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0013/1.047, allocations: 0.4892 MB / 0.512 GB, free: 100.4 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002402/1.05, allocations: 241.6 kB / 0.5123 GB, free: 100.4 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006745/1.057, allocations: 1.77 MB / 0.514 GB, free: 99.82 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008458/1.058, allocations: 1.109 MB / 0.5151 GB, free: 99.09 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009666/1.059, allocations: 464.2 kB / 0.5155 GB, free: 99.09 MB / 395.1 MB Notification: Performance of SimCode: time 1.192e-06/1.059, allocations: 3.469 kB / 0.5155 GB, free: 99.09 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.194/4.253, allocations: 30.09 MB / 0.5449 GB, free: 92.49 MB / 395.1 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