Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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_withLosses,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001263/0.001262, allocations: 197.2 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.336/1.336, allocations: 225.4 MB / 240.1 MB, free: 15.11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008891/0.0008888, allocations: 93.02 kB / 292.1 MB, free: 5.949 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.503e-05/3.512e-05, allocations: 4 kB / 350.6 MB, free: 2.438 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1068, allocations: 51.49 MB / 402.1 MB, free: 14.9 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3301/0.4369, allocations: 96.73 MB / 498.9 MB, free: 8.949 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002313/0.4372, allocations: 78.27 kB / 498.9 MB, free: 8.91 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.115/0.5523, allocations: 44.77 MB / 0.531 GB, free: 13.42 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.466e-06/0.5523, allocations: 0 / 0.531 GB, free: 13.42 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.728e-05/0.5524, allocations: 35.94 kB / 0.531 GB, free: 13.39 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.002735/0.5551, allocations: 1.603 MB / 0.5326 GB, free: 11.74 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.575e-05/0.5552, allocations: 12.03 kB / 0.5326 GB, free: 11.73 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002758/0.5555, allocations: 219.9 kB / 0.5328 GB, free: 11.5 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009459/0.5564, allocations: 285.8 kB / 0.5331 GB, free: 11.22 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002327/0.5588, allocations: 1.196 MB / 0.5342 GB, free: 9.965 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.688e-05/0.5589, allocations: 119.1 kB / 0.5343 GB, free: 9.848 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002134/0.5591, allocations: 163.9 kB / 0.5345 GB, free: 9.688 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002481/0.5616, allocations: 1.43 MB / 0.5359 GB, free: 8.195 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.557e-05/0.5616, allocations: 7.906 kB / 0.5359 GB, free: 8.188 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001181/0.5618, allocations: 64 kB / 0.536 GB, free: 8.125 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.859e-05/0.5618, allocations: 36 kB / 0.536 GB, free: 8.09 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001674/0.5635, allocations: 0.9714 MB / 0.537 GB, free: 7.113 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008588/0.5721, allocations: 6.414 MB / 0.5432 GB, free: 404 kB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001203/0.5733, allocations: 0.557 MB / 0.5438 GB, free: 15.82 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007037/0.574, allocations: 427.1 kB / 0.5442 GB, free: 15.4 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.701e-05/0.5741, allocations: 8.5 kB / 0.5442 GB, free: 15.39 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.003e-05/0.5741, allocations: 43.12 kB / 0.5442 GB, free: 15.34 MB / 426.7 MB Notification: Performance of pre-optimization done (n=66): time 2.305e-06/0.5741, allocations: 0 / 0.5442 GB, free: 15.34 MB / 426.7 MB Notification: Performance of matching and sorting (n=72): time 0.003154/0.5773, allocations: 1.791 MB / 0.546 GB, free: 13.49 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.176e-05/0.5774, allocations: 115.5 kB / 0.5461 GB, free: 13.35 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001521/0.5789, allocations: 1.082 MB / 0.5471 GB, free: 12.26 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.015e-05/0.579, allocations: 37.7 kB / 0.5472 GB, free: 12.21 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005966/0.5796, allocations: 0.8725 MB / 0.548 GB, free: 11.33 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001994/0.5798, allocations: 256.3 kB / 0.5483 GB, free: 11.08 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.377e-05/0.5798, allocations: 24 kB / 0.5483 GB, free: 11.05 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001404/0.58, allocations: 353.9 kB / 0.5486 GB, free: 10.7 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004234/0.5804, allocations: 250.5 kB / 0.5489 GB, free: 10.46 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007024/0.5811, allocations: 0.6993 MB / 0.5495 GB, free: 9.547 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005771/0.5817, allocations: 377.9 kB / 0.5499 GB, free: 9.18 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.103e-06/0.5817, allocations: 7.938 kB / 0.5499 GB, free: 9.172 MB / 426.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.001999/0.5837, allocations: 1.212 MB / 0.5511 GB, free: 7.938 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.105e-05/0.5838, allocations: 12 kB / 0.5511 GB, free: 7.926 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.919e-05/0.5838, allocations: 16 kB / 0.5511 GB, free: 7.91 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004129/0.5842, allocations: 123.1 kB / 0.5512 GB, free: 7.781 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008873/0.5851, allocations: 267.5 kB / 0.5515 GB, free: 7.52 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003474/0.5886, allocations: 4.212 MB / 0.5556 GB, free: 2.902 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001026/0.5896, allocations: 68.12 kB / 0.5557 GB, free: 2.836 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.069e-05/0.5897, allocations: 52 kB / 0.5557 GB, free: 2.785 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (139): * Single equations (assignments): 136 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.000194/0.5899, allocations: 188.5 kB / 0.5559 GB, free: 2.594 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001793/0.5901, allocations: 150.2 kB / 0.556 GB, free: 2.445 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001581/0.5917, allocations: 0.7781 MB / 0.5568 GB, free: 1.641 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.336e-06/0.5917, allocations: 8 kB / 0.5568 GB, free: 1.633 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.5917, allocations: 0 / 0.5568 GB, free: 1.633 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.877e-05/0.5918, allocations: 3.984 kB / 0.5568 GB, free: 1.629 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003683/0.5955, allocations: 2.26 MB / 0.559 GB, free: 15.25 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.271e-06/0.5955, allocations: 4 kB / 0.559 GB, free: 15.25 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000606/0.5961, allocations: 128.3 kB / 0.5592 GB, free: 15.12 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003535/0.5965, allocations: 130.4 kB / 0.5593 GB, free: 14.99 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.65e-05/0.5965, allocations: 16 kB / 0.5593 GB, free: 14.97 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003706/0.6002, allocations: 4.329 MB / 0.5635 GB, free: 10.24 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.861e-06/0.6003, allocations: 4 kB / 0.5635 GB, free: 10.24 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002219/0.6025, allocations: 1.448 MB / 0.5649 GB, free: 8.598 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005662/0.6031, allocations: 279.4 kB / 0.5652 GB, free: 8.305 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001462/0.6032, allocations: 16 kB / 0.5652 GB, free: 8.289 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006217/0.6039, allocations: 47.97 kB / 0.5653 GB, free: 8.242 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001342/0.604, allocations: 68.38 kB / 0.5653 GB, free: 8.176 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.155e-05/0.604, allocations: 20 kB / 0.5653 GB, free: 8.156 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001242/0.6053, allocations: 0.8179 MB / 0.5661 GB, free: 7.336 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6053, allocations: 0 / 0.5661 GB, free: 7.336 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00139/0.6067, allocations: 376 kB / 0.5665 GB, free: 6.969 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 60 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.003181/0.6099, allocations: 3.247 MB / 0.5697 GB, free: 3.598 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001739/0.6116, allocations: 1.064 MB / 0.5707 GB, free: 2.5 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.838e-06/0.6117, allocations: 320 / 0.5707 GB, free: 2.5 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000899/0.6126, allocations: 0.6707 MB / 0.5714 GB, free: 1.793 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00154/0.6141, allocations: 345.3 kB / 0.5717 GB, free: 1.473 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2226/0.8368, allocations: 2.53 MB / 0.5742 GB, free: 97.79 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000663/0.8374, allocations: 1.248 MB / 0.5754 GB, free: 97.08 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0007387/0.8382, allocations: 178 kB / 0.5756 GB, free: 97.07 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006256/0.8388, allocations: 0.6235 MB / 0.5762 GB, free: 97.07 MB / 442.7 MB Notification: Performance of SimCode: time 1.002e-06/0.8388, allocations: 0 / 0.5762 GB, free: 97.07 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07206/0.9109, allocations: 32.58 MB / 0.608 GB, free: 95.54 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002176/0.9112, allocations: 206.2 kB / 0.6082 GB, free: 95.32 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.898/3.81, allocations: 1.969 kB / 0.6082 GB, free: 95.32 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat does not exist to compare? outputFormat=mat