Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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_QuasiStatic,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00132/0.00132, allocations: 201.5 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.341/1.341, allocations: 227.2 MB / 245 MB, free: 7.617 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009123/0.0009123, allocations: 95.38 kB / 297.2 MB, free: 6.188 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002034/0.0002035, allocations: 8 kB / 358 MB, free: 9.43 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2119/0.2121, allocations: 51.48 MB / 409.5 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1108/0.323, allocations: 96.53 MB / 0.4942 GB, free: 10.04 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002449/0.3233, allocations: 87.95 kB / 0.4943 GB, free: 9.949 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2607/0.584, allocations: 40.79 MB / 0.5341 GB, free: 77.05 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.784e-06/0.584, allocations: 0 / 0.5341 GB, free: 77.05 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.251e-05/0.5841, allocations: 36 kB / 0.5341 GB, free: 77.01 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.002863/0.587, allocations: 1.763 MB / 0.5358 GB, free: 75.18 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.749e-05/0.5871, allocations: 8.031 kB / 0.5359 GB, free: 75.18 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002564/0.5873, allocations: 215.9 kB / 0.5361 GB, free: 74.95 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006527/0.588, allocations: 261.6 kB / 0.5363 GB, free: 74.7 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001568/0.5896, allocations: 1.102 MB / 0.5374 GB, free: 73.55 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.622e-05/0.5896, allocations: 119.1 kB / 0.5375 GB, free: 73.43 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001522/0.5898, allocations: 155.9 kB / 0.5376 GB, free: 73.28 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00189/0.5917, allocations: 1.468 MB / 0.5391 GB, free: 71.73 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.443e-05/0.5917, allocations: 15.8 kB / 0.5391 GB, free: 71.72 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001096/0.5919, allocations: 63.98 kB / 0.5392 GB, free: 71.66 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.131e-05/0.5919, allocations: 40 kB / 0.5392 GB, free: 71.62 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001456/0.5934, allocations: 0.9863 MB / 0.5402 GB, free: 70.62 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005814/0.5992, allocations: 6.659 MB / 0.5467 GB, free: 63.61 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007116/0.5999, allocations: 404.7 kB / 0.547 GB, free: 63.2 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.798e-05/0.6, allocations: 8.438 kB / 0.5471 GB, free: 63.2 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004176/0.6004, allocations: 280.7 kB / 0.5473 GB, free: 62.9 MB / 378.7 MB Notification: Performance of pre-optimization done (n=50): time 1.944e-06/0.6004, allocations: 0 / 0.5473 GB, free: 62.9 MB / 378.7 MB Notification: Performance of matching and sorting (n=56): time 0.002694/0.6031, allocations: 1.782 MB / 0.5491 GB, free: 61.02 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.446e-05/0.6032, allocations: 166.8 kB / 0.5492 GB, free: 60.82 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001148/0.6043, allocations: 1.086 MB / 0.5503 GB, free: 59.73 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.172e-05/0.6044, allocations: 37.7 kB / 0.5503 GB, free: 59.68 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004247/0.6048, allocations: 0.8633 MB / 0.5512 GB, free: 58.81 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.842e-05/0.6049, allocations: 209.2 kB / 0.5514 GB, free: 58.6 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.237e-05/0.605, allocations: 24 kB / 0.5514 GB, free: 58.58 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.778e-05/0.605, allocations: 349.9 kB / 0.5517 GB, free: 58.23 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003746/0.6054, allocations: 234.5 kB / 0.5519 GB, free: 58 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005657/0.606, allocations: 0.8151 MB / 0.5527 GB, free: 56.91 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005806/0.6066, allocations: 399.6 kB / 0.5531 GB, free: 56.51 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.036e-05/0.6066, allocations: 8 kB / 0.5531 GB, free: 56.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=151) (initialization): time 0.001536/0.6081, allocations: 1.193 MB / 0.5543 GB, free: 55.29 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.634e-05/0.6082, allocations: 41.69 kB / 0.5543 GB, free: 55.24 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.72e-05/0.6082, allocations: 28.02 kB / 0.5544 GB, free: 55.21 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001969/0.6084, allocations: 65.7 kB / 0.5544 GB, free: 55.14 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007187/0.6091, allocations: 271.5 kB / 0.5547 GB, free: 54.88 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001276/0.6104, allocations: 2.603 MB / 0.5572 GB, free: 52.01 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008835/0.6113, allocations: 68.11 kB / 0.5573 GB, free: 51.94 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.461e-05/0.6114, allocations: 60 kB / 0.5573 GB, free: 51.88 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * 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 () * Number of clocked 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.0005207/0.6119, allocations: 359.4 kB / 0.5577 GB, free: 51.52 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001181/0.6121, allocations: 134.4 kB / 0.5578 GB, free: 51.39 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008903/0.613, allocations: 0.5646 MB / 0.5584 GB, free: 50.81 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.613, allocations: 11.94 kB / 0.5584 GB, free: 50.8 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.613, allocations: 0 / 0.5584 GB, free: 50.8 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.099e-06/0.613, allocations: 3.984 kB / 0.5584 GB, free: 50.79 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002193/0.6152, allocations: 1.857 MB / 0.5602 GB, free: 48.82 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.979e-06/0.6152, allocations: 4 kB / 0.5602 GB, free: 48.82 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004057/0.6156, allocations: 107.8 kB / 0.5603 GB, free: 48.71 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001344/0.6158, allocations: 41.7 kB / 0.5603 GB, free: 48.66 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.301e-05/0.6158, allocations: 12 kB / 0.5604 GB, free: 48.65 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001109/0.6169, allocations: 2.564 MB / 0.5629 GB, free: 45.82 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.558e-06/0.6169, allocations: 15.88 kB / 0.5629 GB, free: 45.81 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001124/0.6181, allocations: 1.128 MB / 0.564 GB, free: 44.5 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003361/0.6184, allocations: 247.5 kB / 0.5642 GB, free: 44.24 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000153/0.6186, allocations: 19.98 kB / 0.5642 GB, free: 44.22 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005277/0.6191, allocations: 35.98 kB / 0.5643 GB, free: 44.18 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001014/0.6192, allocations: 59.81 kB / 0.5643 GB, free: 44.12 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.446e-05/0.6193, allocations: 16 kB / 0.5643 GB, free: 44.11 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0009201/0.6202, allocations: 0.8071 MB / 0.5651 GB, free: 43.3 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6202, allocations: 0 / 0.5651 GB, free: 43.3 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001068/0.6213, allocations: 347.9 kB / 0.5655 GB, free: 42.96 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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) * Number of clocked states: 0 () * 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.001738/0.623, allocations: 2.813 MB / 0.5682 GB, free: 40.02 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001258/0.6243, allocations: 0.9402 MB / 0.5691 GB, free: 39.05 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.6243, allocations: 0 / 0.5691 GB, free: 39.05 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005309/0.6248, allocations: 486.9 kB / 0.5696 GB, free: 38.55 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001113/0.626, allocations: 310.4 kB / 0.5699 GB, free: 38.25 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01258/0.6385, allocations: 20.71 MB / 0.5901 GB, free: 16.78 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006217/0.6392, allocations: 1.209 MB / 0.5913 GB, free: 15.54 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006986/0.6399, allocations: 175.3 kB / 0.5915 GB, free: 15.36 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005419/0.6405, allocations: 0.5852 MB / 0.592 GB, free: 14.78 MB / 378.7 MB Notification: Performance of SimCode: time 1.794e-06/0.6405, allocations: 0 / 0.592 GB, free: 14.78 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04716/0.6877, allocations: 28.38 MB / 0.6197 GB, free: 2.723 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002429/0.6879, allocations: 221.4 kB / 0.6199 GB, free: 2.48 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.691/3.379, allocations: 0 / 0.6199 GB, free: 2.48 MB / 394.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat does not exist to compare? outputFormat=mat