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_QuasiStationary.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_QuasiStationary,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary",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.001644/0.001644, allocations: 181.4 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.348/2.348, 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.001115/0.001115, allocations: 78.7 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.304e-05/3.315e-05, allocations: 4 kB / 321.6 MB, free: 17.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1062, allocations: 47.57 MB / 369.2 MB, free: 2.094 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4615/0.5677, allocations: 94.47 MB / 463.7 MB, free: 14.64 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003343/0.5681, allocations: 81.48 kB / 463.7 MB, free: 14.6 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1816/0.7498, allocations: 40.8 MB / 0.4927 GB, free: 7.359 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.284e-06/0.7498, allocations: 0 / 0.4927 GB, free: 7.359 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001524/0.75, allocations: 35.94 kB / 0.4928 GB, free: 7.324 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.005268/0.7553, allocations: 1.558 MB / 0.4943 GB, free: 5.703 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.081e-05/0.7554, allocations: 12.03 kB / 0.4943 GB, free: 5.691 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006736/0.7561, allocations: 215.9 kB / 0.4945 GB, free: 5.469 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001399/0.7575, allocations: 261.5 kB / 0.4947 GB, free: 5.211 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003755/0.7612, allocations: 1.098 MB / 0.4958 GB, free: 4.066 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000153/0.7615, allocations: 115.1 kB / 0.4959 GB, free: 3.953 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004174/0.7619, allocations: 159.9 kB / 0.4961 GB, free: 3.797 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004715/0.7666, allocations: 1.425 MB / 0.4975 GB, free: 2.297 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.963e-05/0.7668, allocations: 11.89 kB / 0.4975 GB, free: 2.285 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002173/0.767, allocations: 64 kB / 0.4975 GB, free: 2.223 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.087e-05/0.7671, allocations: 36 kB / 0.4976 GB, free: 2.188 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003057/0.7701, allocations: 0.9125 MB / 0.4985 GB, free: 1.27 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01572/0.7859, allocations: 6.652 MB / 0.505 GB, free: 10.26 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001168/0.7871, allocations: 373.1 kB / 0.5053 GB, free: 9.887 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005739/0.7877, allocations: 206.2 kB / 0.5055 GB, free: 9.684 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.478e-05/0.7878, allocations: 4.438 kB / 0.5055 GB, free: 9.68 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006482/0.7885, allocations: 257.6 kB / 0.5058 GB, free: 9.402 MB / 394.7 MB Notification: Performance of pre-optimization done (n=50): time 3.747e-06/0.7885, allocations: 3.938 kB / 0.5058 GB, free: 9.398 MB / 394.7 MB Notification: Performance of matching and sorting (n=56): time 0.004904/0.7934, allocations: 1.62 MB / 0.5073 GB, free: 7.715 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001519/0.7936, allocations: 192.4 kB / 0.5075 GB, free: 7.484 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002651/0.7963, allocations: 1.061 MB / 0.5086 GB, free: 6.41 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001505/0.7965, allocations: 41.69 kB / 0.5086 GB, free: 6.363 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001044/0.7976, allocations: 0.8458 MB / 0.5094 GB, free: 5.508 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003266/0.7979, allocations: 205.2 kB / 0.5096 GB, free: 5.305 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.014e-05/0.798, allocations: 28 kB / 0.5097 GB, free: 5.277 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002188/0.7982, allocations: 354.8 kB / 0.51 GB, free: 4.922 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006605/0.7989, allocations: 214.6 kB / 0.5102 GB, free: 4.715 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001205/0.8001, allocations: 0.7801 MB / 0.511 GB, free: 3.648 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001023/0.8012, allocations: 383.4 kB / 0.5113 GB, free: 3.27 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.684e-05/0.8012, allocations: 8 kB / 0.5113 GB, free: 3.262 MB / 394.7 MB Notification: Performance of matching and sorting (n=151) (initialization): time 0.002957/0.8042, allocations: 1.06 MB / 0.5124 GB, free: 2.184 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.181e-05/0.8043, allocations: 37.7 kB / 0.5124 GB, free: 2.141 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.987e-05/0.8044, allocations: 20 kB / 0.5124 GB, free: 2.121 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000364/0.8047, allocations: 70.39 kB / 0.5125 GB, free: 2.047 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00175/0.8065, allocations: 271.5 kB / 0.5127 GB, free: 1.781 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002933/0.8095, allocations: 2.576 MB / 0.5153 GB, free: 14.94 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001874/0.8114, allocations: 71.88 kB / 0.5153 GB, free: 14.87 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000202/0.8117, allocations: 67.94 kB / 0.5154 GB, free: 14.8 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * 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 (148): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 1 * 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,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003503/0.812, allocations: 193.4 kB / 0.5156 GB, free: 14.61 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003369/0.8124, allocations: 134.4 kB / 0.5157 GB, free: 14.47 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001642/0.814, allocations: 0.5135 MB / 0.5162 GB, free: 13.94 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.371e-05/0.8141, allocations: 7.953 kB / 0.5162 GB, free: 13.93 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.8141, allocations: 0 / 0.5162 GB, free: 13.93 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.535e-05/0.8141, allocations: 7.984 kB / 0.5162 GB, free: 13.93 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004849/0.819, allocations: 1.888 MB / 0.5181 GB, free: 11.92 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.279e-05/0.8191, allocations: 4 kB / 0.5181 GB, free: 11.91 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009287/0.82, allocations: 112.2 kB / 0.5182 GB, free: 11.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002992/0.8203, allocations: 45.7 kB / 0.5182 GB, free: 11.75 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.31e-05/0.8204, allocations: 15.98 kB / 0.5182 GB, free: 11.74 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002912/0.8234, allocations: 2.552 MB / 0.5207 GB, free: 8.922 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.602e-05/0.8235, allocations: 4 kB / 0.5207 GB, free: 8.918 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002588/0.8261, allocations: 1.079 MB / 0.5218 GB, free: 7.648 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008818/0.827, allocations: 263.3 kB / 0.522 GB, free: 7.371 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00028/0.8273, allocations: 16 kB / 0.5221 GB, free: 7.355 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001002/0.8283, allocations: 35.97 kB / 0.5221 GB, free: 7.32 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001939/0.8285, allocations: 59.83 kB / 0.5221 GB, free: 7.262 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.645e-05/0.8286, allocations: 12 kB / 0.5222 GB, free: 7.25 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002077/0.8307, allocations: 0.7974 MB / 0.5229 GB, free: 6.449 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.11e-07/0.8307, allocations: 0 / 0.5229 GB, free: 6.449 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002313/0.8331, allocations: 340 kB / 0.5233 GB, free: 6.117 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.phi,dcpm1.inertiaRotor.w,dcpm1.la.i,dcpm2.inertiaRotor.phi,dcpm2.inertiaRotor.w) * 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 (54): * Single equations (assignments): 50 * 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: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003982/0.8371, allocations: 2.838 MB / 0.526 GB, free: 3.148 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002375/0.8395, allocations: 0.8888 MB / 0.5269 GB, free: 2.223 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.03e-05/0.8396, allocations: 2 kB / 0.5269 GB, free: 2.223 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001037/0.8407, allocations: 438.1 kB / 0.5273 GB, free: 1.77 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002779/0.8435, allocations: 309.5 kB / 0.5276 GB, free: 1.469 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2944/1.138, allocations: 2.165 MB / 0.5297 GB, free: 108.1 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001126/1.139, allocations: 1.216 MB / 0.5309 GB, free: 107.4 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001347/1.14, allocations: 0.5923 MB / 0.5315 GB, free: 107.4 MB / 410.7 MB Notification: Performance of SimCode: time 1.372e-06/1.14, allocations: 0 / 0.5315 GB, free: 107.4 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.211/4.352, allocations: 37.58 MB / 0.5682 GB, free: 101.4 MB / 410.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.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_QuasiStationary_res.mat does not exist to compare? outputFormat=mat