Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001552/0.001552, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.433/1.433, allocations: 225.4 MB / 240.1 MB, free: 15.12 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008125/0.0008124, allocations: 89 kB / 292.1 MB, free: 5.984 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.064e-05/3.075e-05, allocations: 4 kB / 350.6 MB, free: 2.438 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1247/0.1247, allocations: 51.49 MB / 402.1 MB, free: 14.9 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4112/0.5359, allocations: 95.17 MB / 497.3 MB, free: 10.48 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002369/0.5362, allocations: 82.08 kB / 497.4 MB, free: 10.44 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06144/0.5977, allocations: 23.14 MB / 0.5083 GB, free: 4.707 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.5977, allocations: 0 / 0.5083 GB, free: 4.707 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.644e-05/0.5978, allocations: 19.94 kB / 0.5083 GB, free: 4.688 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.001777/0.5996, allocations: 0.978 MB / 0.5093 GB, free: 3.672 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.446e-05/0.5996, allocations: 12.03 kB / 0.5093 GB, free: 3.66 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002126/0.5998, allocations: 128.8 kB / 0.5094 GB, free: 3.527 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005447/0.6004, allocations: 142.8 kB / 0.5096 GB, free: 3.387 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001359/0.6018, allocations: 0.6874 MB / 0.5102 GB, free: 2.656 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.56e-05/0.6018, allocations: 58 kB / 0.5103 GB, free: 2.598 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001234/0.602, allocations: 83.98 kB / 0.5104 GB, free: 2.516 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001261/0.6032, allocations: 0.7327 MB / 0.5111 GB, free: 1.754 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.138e-05/0.6033, allocations: 7.906 kB / 0.5111 GB, free: 1.746 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.332e-05/0.6034, allocations: 32 kB / 0.5111 GB, free: 1.715 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.099e-05/0.6034, allocations: 20 kB / 0.5112 GB, free: 1.695 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008778/0.6043, allocations: 487.8 kB / 0.5116 GB, free: 1.215 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004494/0.6088, allocations: 3.439 MB / 0.515 GB, free: 13.57 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004571/0.6092, allocations: 222.5 kB / 0.5152 GB, free: 13.35 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000161/0.6094, allocations: 92.86 kB / 0.5153 GB, free: 13.25 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.31e-05/0.6095, allocations: 4 kB / 0.5153 GB, free: 13.25 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.648e-05/0.6095, allocations: 34.56 kB / 0.5153 GB, free: 13.21 MB / 394.7 MB Notification: Performance of pre-optimization done (n=25): time 2.385e-06/0.6095, allocations: 0 / 0.5153 GB, free: 13.21 MB / 394.7 MB Notification: Performance of matching and sorting (n=28): time 0.001421/0.6109, allocations: 0.8237 MB / 0.5161 GB, free: 12.33 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.824e-05/0.611, allocations: 79.41 kB / 0.5162 GB, free: 12.23 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008482/0.6118, allocations: 0.6131 MB / 0.5168 GB, free: 11.62 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.818e-05/0.6119, allocations: 33.7 kB / 0.5168 GB, free: 11.58 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003428/0.6122, allocations: 0.4903 MB / 0.5173 GB, free: 11.08 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.695e-05/0.6123, allocations: 102.5 kB / 0.5174 GB, free: 10.98 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.199e-05/0.6124, allocations: 16 kB / 0.5174 GB, free: 10.96 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000161/0.6125, allocations: 386.6 kB / 0.5178 GB, free: 10.58 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001911/0.6127, allocations: 109.6 kB / 0.5179 GB, free: 10.47 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003756/0.6131, allocations: 391.5 kB / 0.5183 GB, free: 9.945 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002891/0.6134, allocations: 179.8 kB / 0.5184 GB, free: 9.77 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.6134, allocations: 0 / 0.5184 GB, free: 9.77 MB / 394.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008907/0.6143, allocations: 0.5703 MB / 0.519 GB, free: 9.195 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.272e-05/0.6143, allocations: 13.25 kB / 0.519 GB, free: 9.184 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.55e-05/0.6144, allocations: 8 kB / 0.519 GB, free: 9.176 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001583/0.6145, allocations: 40.78 kB / 0.5191 GB, free: 9.133 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004316/0.615, allocations: 139.8 kB / 0.5192 GB, free: 8.996 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009761/0.616, allocations: 1.294 MB / 0.5204 GB, free: 7.566 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004509/0.6164, allocations: 39.86 kB / 0.5205 GB, free: 7.527 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.544e-05/0.6165, allocations: 40.14 kB / 0.5205 GB, free: 7.488 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (74): * Single equations (assignments): 73 * 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: 1 * 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: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001137/0.6166, allocations: 144.7 kB / 0.5207 GB, free: 7.34 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001041/0.6167, allocations: 71.16 kB / 0.5207 GB, free: 7.27 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004928/0.6172, allocations: 285.4 kB / 0.521 GB, free: 6.977 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.649e-06/0.6172, allocations: 5.875 kB / 0.521 GB, free: 6.973 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.6172, allocations: 3.953 kB / 0.521 GB, free: 6.969 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.6172, allocations: 0 / 0.521 GB, free: 6.969 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001437/0.6187, allocations: 1.05 MB / 0.522 GB, free: 5.844 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.99e-06/0.6187, allocations: 8.031 kB / 0.522 GB, free: 5.836 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002725/0.619, allocations: 55.97 kB / 0.5221 GB, free: 5.781 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.815e-05/0.6191, allocations: 28.78 kB / 0.5221 GB, free: 5.75 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.183e-05/0.6191, allocations: 8 kB / 0.5221 GB, free: 5.742 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009055/0.62, allocations: 1.271 MB / 0.5234 GB, free: 4.34 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.62, allocations: 0 / 0.5234 GB, free: 4.34 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006895/0.6207, allocations: 0.5951 MB / 0.524 GB, free: 3.66 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002878/0.621, allocations: 168.3 kB / 0.5241 GB, free: 3.477 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001002/0.6212, allocations: 8 kB / 0.5241 GB, free: 3.469 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003322/0.6215, allocations: 31.94 kB / 0.5242 GB, free: 3.438 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.646e-05/0.6216, allocations: 19.97 kB / 0.5242 GB, free: 3.418 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.792e-05/0.6216, allocations: 12 kB / 0.5242 GB, free: 3.406 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0006102/0.6222, allocations: 475.2 kB / 0.5246 GB, free: 2.949 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.41e-07/0.6222, allocations: 4 kB / 0.5246 GB, free: 2.945 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007629/0.623, allocations: 191.9 kB / 0.5248 GB, free: 2.758 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,dcpm.la.i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * 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: 1 * 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: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001583/0.6246, allocations: 1.797 MB / 0.5266 GB, free: 0.8945 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0007499/0.6254, allocations: 433.2 kB / 0.527 GB, free: 472 kB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.6254, allocations: 4.062 kB / 0.527 GB, free: 468 kB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003084/0.6257, allocations: 215.1 kB / 0.5272 GB, free: 240 kB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008361/0.6265, allocations: 170.6 kB / 0.5274 GB, free: 76 kB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002609/0.6292, allocations: 1.164 MB / 0.5285 GB, free: 14.85 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005958/0.6298, allocations: 0.9608 MB / 0.5294 GB, free: 13.86 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0004/0.6302, allocations: 91.8 kB / 0.5295 GB, free: 13.77 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003808/0.6306, allocations: 303.3 kB / 0.5298 GB, free: 13.47 MB / 410.7 MB Notification: Performance of SimCode: time 7.01e-07/0.6306, allocations: 0 / 0.5298 GB, free: 13.47 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03854/0.6691, allocations: 16.91 MB / 0.5463 GB, free: 12.83 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001633/0.6693, allocations: 187.5 kB / 0.5465 GB, free: 12.61 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.353/3.023, allocations: 0 / 0.5465 GB, free: 12.61 MB / 426.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat does not exist to compare? outputFormat=mat