Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_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.DCSE_Start,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_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.001498/0.001498, allocations: 198.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.721/1.721, allocations: 225.6 MB / 234.8 MB, free: 3.297 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000912/0.000912, allocations: 101.2 kB / 286.7 MB, free: 5.266 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.444e-05/2.447e-05, allocations: 0 / 343.8 MB, free: 8.199 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1412/0.1413, allocations: 51.49 MB / 395.3 MB, free: 4.676 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3646/0.5059, allocations: 98.73 MB / 494 MB, free: 10.51 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002272/0.5062, allocations: 83.33 kB / 494.1 MB, free: 10.47 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0738/0.58, allocations: 27.92 MB / 0.5098 GB, free: 3.527 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.58, allocations: 0 / 0.5098 GB, free: 3.527 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.864e-05/0.5801, allocations: 20 kB / 0.5098 GB, free: 3.508 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.002293/0.5824, allocations: 1.114 MB / 0.5109 GB, free: 2.348 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.297e-05/0.5825, allocations: 12.03 kB / 0.5109 GB, free: 2.336 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008145/0.5833, allocations: 190.4 kB / 0.5111 GB, free: 2.148 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001714/0.585, allocations: 0.7808 MB / 0.5118 GB, free: 1.328 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.436e-05/0.5851, allocations: 32 kB / 0.5119 GB, free: 1.297 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000229/0.5854, allocations: 63.86 kB / 0.5119 GB, free: 1.234 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001375/0.5867, allocations: 0.5351 MB / 0.5124 GB, free: 0.6992 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001603/0.5884, allocations: 0.748 MB / 0.5132 GB, free: 15.92 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.754e-05/0.5884, allocations: 4 kB / 0.5132 GB, free: 15.92 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.88e-05/0.5885, allocations: 0 / 0.5132 GB, free: 15.92 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.517e-05/0.5885, allocations: 24 kB / 0.5132 GB, free: 15.89 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006497/0.5951, allocations: 3.737 MB / 0.5169 GB, free: 11.96 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005811/0.5957, allocations: 420.1 kB / 0.5173 GB, free: 11.53 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004625/0.5962, allocations: 234.2 kB / 0.5175 GB, free: 11.3 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.078e-05/0.5962, allocations: 4 kB / 0.5175 GB, free: 11.29 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.052e-05/0.5963, allocations: 38.56 kB / 0.5175 GB, free: 11.25 MB / 394.7 MB Notification: Performance of pre-optimization done (n=42): time 2.003e-06/0.5963, allocations: 4 kB / 0.5175 GB, free: 11.24 MB / 394.7 MB Notification: Performance of matching and sorting (n=47): time 0.002391/0.5987, allocations: 1.104 MB / 0.5186 GB, free: 10.08 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.613e-05/0.5987, allocations: 81.55 kB / 0.5187 GB, free: 9.98 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001012/0.5998, allocations: 0.578 MB / 0.5192 GB, free: 9.398 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.383e-05/0.5998, allocations: 25.7 kB / 0.5193 GB, free: 9.367 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004259/0.6003, allocations: 0.5602 MB / 0.5198 GB, free: 8.797 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001355/0.6004, allocations: 161.6 kB / 0.52 GB, free: 8.637 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.032e-05/0.6004, allocations: 0 / 0.52 GB, free: 8.637 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001728/0.6006, allocations: 386.7 kB / 0.5203 GB, free: 8.25 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002505/0.6009, allocations: 137.6 kB / 0.5205 GB, free: 8.117 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004413/0.6013, allocations: 424.4 kB / 0.5209 GB, free: 7.566 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003676/0.6017, allocations: 224.6 kB / 0.5211 GB, free: 7.344 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.491e-06/0.6017, allocations: 0 / 0.5211 GB, free: 7.344 MB / 394.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001273/0.603, allocations: 0.665 MB / 0.5217 GB, free: 6.664 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.73e-05/0.603, allocations: 12 kB / 0.5217 GB, free: 6.652 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.664e-05/0.603, allocations: 11.94 kB / 0.5218 GB, free: 6.641 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002955/0.6033, allocations: 93.95 kB / 0.5218 GB, free: 6.543 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000518/0.6039, allocations: 155.7 kB / 0.522 GB, free: 6.391 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002407/0.6063, allocations: 2.875 MB / 0.5248 GB, free: 3.289 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006578/0.607, allocations: 23.86 kB / 0.5248 GB, free: 3.266 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.92e-05/0.607, allocations: 35.94 kB / 0.5249 GB, free: 3.23 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (85): * Single equations (assignments): 83 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 7,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001572/0.6072, allocations: 144.7 kB / 0.525 GB, free: 3.082 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008187/0.608, allocations: 424.7 kB / 0.5254 GB, free: 2.656 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001669/0.6082, allocations: 79.06 kB / 0.5255 GB, free: 2.578 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008182/0.609, allocations: 445.6 kB / 0.5259 GB, free: 2.117 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.981e-06/0.6091, allocations: 4 kB / 0.5259 GB, free: 2.113 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.6091, allocations: 4 kB / 0.5259 GB, free: 2.109 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.633e-06/0.6091, allocations: 3.953 kB / 0.5259 GB, free: 2.105 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002235/0.6113, allocations: 1.264 MB / 0.5272 GB, free: 0.7695 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.306e-06/0.6114, allocations: 7.938 kB / 0.5272 GB, free: 0.7617 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003372/0.6117, allocations: 75.91 kB / 0.5272 GB, free: 0.6875 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000257/0.612, allocations: 81.89 kB / 0.5273 GB, free: 0.6016 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.877e-05/0.612, allocations: 4 kB / 0.5273 GB, free: 0.5977 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002433/0.6144, allocations: 2.862 MB / 0.5301 GB, free: 13.51 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.388e-06/0.6145, allocations: 7.969 kB / 0.5301 GB, free: 13.5 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001273/0.6158, allocations: 0.8011 MB / 0.5309 GB, free: 12.61 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003703/0.6161, allocations: 184.2 kB / 0.5311 GB, free: 12.41 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000169/0.6163, allocations: 4 kB / 0.5311 GB, free: 12.41 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004519/0.6168, allocations: 31.91 kB / 0.5311 GB, free: 12.38 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.709e-05/0.6169, allocations: 35.91 kB / 0.5311 GB, free: 12.34 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.993e-05/0.6169, allocations: 16 kB / 0.5312 GB, free: 12.33 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0006959/0.6176, allocations: 435.2 kB / 0.5316 GB, free: 11.91 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.6176, allocations: 4 kB / 0.5316 GB, free: 11.91 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001024/0.6187, allocations: 192 kB / 0.5318 GB, free: 11.72 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 37 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 7,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001706/0.6204, allocations: 1.994 MB / 0.5337 GB, free: 9.652 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001075/0.6215, allocations: 0.6266 MB / 0.5343 GB, free: 9.004 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/0.6215, allocations: 0 / 0.5343 GB, free: 9.004 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005985/0.6221, allocations: 424.4 kB / 0.5347 GB, free: 8.57 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009263/0.623, allocations: 169.8 kB / 0.5349 GB, free: 8.406 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00342/0.6265, allocations: 1.359 MB / 0.5362 GB, free: 6.984 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006687/0.6272, allocations: 1.032 MB / 0.5372 GB, free: 5.922 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0004921/0.6277, allocations: 98.7 kB / 0.5373 GB, free: 5.82 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004864/0.6282, allocations: 371.3 kB / 0.5377 GB, free: 5.457 MB / 410.7 MB Notification: Performance of SimCode: time 9.21e-07/0.6282, allocations: 0 / 0.5377 GB, free: 5.457 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04534/0.6735, allocations: 16.26 MB / 0.5535 GB, free: 5.344 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000197/0.6738, allocations: 145.3 kB / 0.5537 GB, free: 5.156 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.358/3.032, allocations: 0 / 0.5537 GB, free: 5.156 MB / 426.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat does not exist to compare? outputFormat=mat