Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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_SinglePhase,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00112/0.00112, allocations: 197.4 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.275/1.275, allocations: 227.2 MB / 245 MB, free: 5.785 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008886/0.0008887, allocations: 107.4 kB / 297.3 MB, free: 5.949 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002624/0.0002623, allocations: 4 kB / 358 MB, free: 9.199 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1947/0.195, allocations: 51.49 MB / 409.5 MB, free: 26.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1077/0.3027, allocations: 100.4 MB / 0.4979 GB, free: 6.152 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002154/0.303, allocations: 83.95 kB / 0.498 GB, free: 6.07 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2255/0.5284, allocations: 28.84 MB / 0.5262 GB, free: 85.9 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.5285, allocations: 0 / 0.5262 GB, free: 85.9 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.797e-05/0.5285, allocations: 24 kB / 0.5262 GB, free: 85.88 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.001911/0.5304, allocations: 1.293 MB / 0.5275 GB, free: 84.53 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.947e-05/0.5305, allocations: 11.97 kB / 0.5275 GB, free: 84.52 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001389/0.5306, allocations: 156.2 kB / 0.5276 GB, free: 84.36 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000652/0.5313, allocations: 206.3 kB / 0.5278 GB, free: 84.16 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001257/0.5326, allocations: 0.8087 MB / 0.5286 GB, free: 83.3 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.803e-05/0.5326, allocations: 70 kB / 0.5287 GB, free: 83.23 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001006/0.5327, allocations: 100 kB / 0.5288 GB, free: 83.14 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001257/0.534, allocations: 0.9385 MB / 0.5297 GB, free: 82.17 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.627e-05/0.534, allocations: 7.906 kB / 0.5297 GB, free: 82.16 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001136/0.5342, allocations: 44 kB / 0.5297 GB, free: 82.12 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.998e-05/0.5342, allocations: 31.95 kB / 0.5298 GB, free: 82.09 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001056/0.5353, allocations: 0.6636 MB / 0.5304 GB, free: 81.42 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004023/0.5393, allocations: 3.943 MB / 0.5343 GB, free: 77.27 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00056/0.5399, allocations: 464.2 kB / 0.5347 GB, free: 76.79 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.849e-05/0.5399, allocations: 4 kB / 0.5347 GB, free: 76.78 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.08e-05/0.54, allocations: 42.52 kB / 0.5348 GB, free: 76.73 MB / 378.7 MB Notification: Performance of pre-optimization done (n=43): time 2.906e-06/0.54, allocations: 0 / 0.5348 GB, free: 76.73 MB / 378.7 MB Notification: Performance of matching and sorting (n=48): time 0.002521/0.5425, allocations: 1.516 MB / 0.5362 GB, free: 75.14 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.152e-05/0.5426, allocations: 85.55 kB / 0.5363 GB, free: 75.04 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008235/0.5434, allocations: 0.7074 MB / 0.537 GB, free: 74.32 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.656e-05/0.5434, allocations: 33.7 kB / 0.537 GB, free: 74.29 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002349/0.5437, allocations: 0.5643 MB / 0.5376 GB, free: 73.71 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.584e-05/0.5438, allocations: 169.6 kB / 0.5378 GB, free: 73.54 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.192e-05/0.5438, allocations: 15.94 kB / 0.5378 GB, free: 73.53 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.53e-05/0.5439, allocations: 338 kB / 0.5381 GB, free: 73.19 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003247/0.5442, allocations: 181.9 kB / 0.5383 GB, free: 73.01 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003835/0.5446, allocations: 484 kB / 0.5387 GB, free: 72.4 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003735/0.545, allocations: 256.3 kB / 0.539 GB, free: 72.15 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.545, allocations: 3.938 kB / 0.539 GB, free: 72.15 MB / 378.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.00108/0.5461, allocations: 0.8053 MB / 0.5398 GB, free: 71.33 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.228e-05/0.5461, allocations: 8 kB / 0.5398 GB, free: 71.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.208e-05/0.5461, allocations: 12 kB / 0.5398 GB, free: 71.31 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002511/0.5464, allocations: 85.67 kB / 0.5399 GB, free: 71.22 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000478/0.5469, allocations: 164 kB / 0.54 GB, free: 71.06 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001671/0.5485, allocations: 2.929 MB / 0.5429 GB, free: 67.87 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005607/0.5491, allocations: 39.89 kB / 0.5429 GB, free: 67.83 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.774e-05/0.5492, allocations: 39.98 kB / 0.543 GB, free: 67.79 MB / 378.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (87): * Single equations (assignments): 85 * 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%) 6,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004011/0.5496, allocations: 257.6 kB / 0.5432 GB, free: 67.53 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.856e-05/0.5497, allocations: 98.89 kB / 0.5433 GB, free: 67.43 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008321/0.5505, allocations: 0.5261 MB / 0.5438 GB, free: 66.89 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.5505, allocations: 8 kB / 0.5438 GB, free: 66.88 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.975e-06/0.5505, allocations: 0 / 0.5438 GB, free: 66.88 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.5505, allocations: 0 / 0.5438 GB, free: 66.88 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001756/0.5523, allocations: 1.47 MB / 0.5453 GB, free: 65.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/0.5523, allocations: 4 kB / 0.5453 GB, free: 65.32 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003162/0.5526, allocations: 79.84 kB / 0.5453 GB, free: 65.24 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001769/0.5528, allocations: 77.89 kB / 0.5454 GB, free: 65.16 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.679e-05/0.5529, allocations: 11.98 kB / 0.5454 GB, free: 65.14 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001534/0.5544, allocations: 2.916 MB / 0.5483 GB, free: 61.96 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.5544, allocations: 7.984 kB / 0.5483 GB, free: 61.96 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001049/0.5555, allocations: 0.9261 MB / 0.5492 GB, free: 60.94 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002287/0.5557, allocations: 200 kB / 0.5494 GB, free: 60.72 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.452e-05/0.5558, allocations: 11.98 kB / 0.5494 GB, free: 60.71 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004502/0.5563, allocations: 39.92 kB / 0.5494 GB, free: 60.67 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.54e-05/0.5564, allocations: 39.84 kB / 0.5495 GB, free: 60.63 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.244e-05/0.5564, allocations: 16 kB / 0.5495 GB, free: 60.62 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005685/0.557, allocations: 0.5381 MB / 0.55 GB, free: 60.09 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.557, allocations: 0 / 0.55 GB, free: 60.09 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008806/0.5578, allocations: 252 kB / 0.5502 GB, free: 59.84 MB / 378.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 39 * 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%) 6,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001532/0.5594, allocations: 2.135 MB / 0.5523 GB, free: 57.62 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000961/0.5604, allocations: 0.7346 MB / 0.553 GB, free: 56.86 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.5604, allocations: 0 / 0.553 GB, free: 56.86 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005266/0.5609, allocations: 470 kB / 0.5535 GB, free: 56.38 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000826/0.5617, allocations: 210.5 kB / 0.5537 GB, free: 56.17 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007005/0.5688, allocations: 11.64 MB / 0.5651 GB, free: 44.15 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003627/0.5692, allocations: 1.032 MB / 0.5661 GB, free: 43.09 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004151/0.5696, allocations: 111.3 kB / 0.5662 GB, free: 42.98 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003407/0.5699, allocations: 387.3 kB / 0.5666 GB, free: 42.6 MB / 378.7 MB Notification: Performance of SimCode: time 7.41e-07/0.5699, allocations: 0 / 0.5666 GB, free: 42.6 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03253/0.6025, allocations: 20.7 MB / 0.5868 GB, free: 22.2 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001637/0.6027, allocations: 217.8 kB / 0.587 GB, free: 21.96 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.523/3.126, allocations: 0 / 0.587 GB, free: 21.96 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat does not exist to compare? outputFormat=mat