Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.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.Analog.Examples.SeriesResonance,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SeriesResonance,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002177/0.002177, allocations: 195.9 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.426/1.426, allocations: 225.4 MB / 240.1 MB, free: 15.15 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008754/0.0008755, allocations: 90.59 kB / 292.1 MB, free: 5.867 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.116e-05/3.12e-05, allocations: 11.98 kB / 350.6 MB, free: 2.449 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.1055, allocations: 51.48 MB / 402.1 MB, free: 14.92 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3355/0.441, allocations: 80.15 MB / 482.3 MB, free: 9.379 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000215/0.4413, allocations: 68.44 kB / 482.3 MB, free: 9.348 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01302/0.4543, allocations: 5.155 MB / 487.5 MB, free: 5.055 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.412e-06/0.4544, allocations: 4 kB / 487.5 MB, free: 5.051 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.483e-05/0.4544, allocations: 4 kB / 487.5 MB, free: 5.047 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.000874/0.4553, allocations: 0.548 MB / 488.1 MB, free: 4.484 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.678e-05/0.4554, allocations: 12.03 kB / 488.1 MB, free: 4.473 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.639e-05/0.4555, allocations: 69.97 kB / 488.1 MB, free: 4.414 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.69e-05/0.4556, allocations: 41.95 kB / 488.2 MB, free: 4.375 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003456/0.4559, allocations: 260.5 kB / 488.4 MB, free: 4.105 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.807e-05/0.4559, allocations: 24.45 kB / 488.5 MB, free: 4.09 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.16e-05/0.456, allocations: 31.44 kB / 488.5 MB, free: 4.07 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004267/0.4564, allocations: 250.9 kB / 488.7 MB, free: 3.898 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.264e-05/0.4565, allocations: 0 / 488.7 MB, free: 3.898 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.937e-05/0.4565, allocations: 15.25 kB / 488.7 MB, free: 3.895 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.127e-06/0.4565, allocations: 8 kB / 488.7 MB, free: 3.887 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002796/0.4568, allocations: 172.5 kB / 488.9 MB, free: 3.77 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00162/0.4584, allocations: 1.011 MB / 489.9 MB, free: 2.855 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002322/0.4587, allocations: 149 kB / 490.1 MB, free: 2.742 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001056/0.4588, allocations: 63.86 kB / 490.1 MB, free: 2.699 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.241e-05/0.4588, allocations: 4 kB / 490.1 MB, free: 2.695 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.409e-05/0.4589, allocations: 38.55 kB / 490.2 MB, free: 2.648 MB / 346.7 MB Notification: Performance of pre-optimization done (n=17): time 2.054e-06/0.4589, allocations: 3.062 kB / 490.2 MB, free: 2.648 MB / 346.7 MB Notification: Performance of matching and sorting (n=17): time 0.000315/0.4592, allocations: 144 kB / 490.3 MB, free: 2.531 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.206e-05/0.4592, allocations: 55.41 kB / 490.4 MB, free: 2.465 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001704/0.4594, allocations: 183.1 kB / 490.6 MB, free: 2.301 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.768e-05/0.4594, allocations: 29.2 kB / 490.6 MB, free: 2.27 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.775e-05/0.4595, allocations: 188.8 kB / 490.8 MB, free: 2.105 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.366e-05/0.4596, allocations: 65.53 kB / 490.8 MB, free: 2.051 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.028e-05/0.4596, allocations: 7.562 kB / 490.8 MB, free: 2.047 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.8e-05/0.4597, allocations: 339.8 kB / 491.2 MB, free: 1.719 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.647e-05/0.4598, allocations: 45.25 kB / 491.2 MB, free: 1.691 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001108/0.4599, allocations: 99.44 kB / 491.3 MB, free: 1.594 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001105/0.46, allocations: 60.97 kB / 491.4 MB, free: 1.555 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.46, allocations: 4 kB / 491.4 MB, free: 1.551 MB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003014/0.4603, allocations: 217.5 kB / 491.6 MB, free: 1.375 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.039e-05/0.4603, allocations: 4 kB / 491.6 MB, free: 1.371 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.225e-06/0.4603, allocations: 0 / 491.6 MB, free: 1.371 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.219e-05/0.4604, allocations: 7.938 kB / 491.6 MB, free: 1.363 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002744/0.4607, allocations: 70.09 kB / 491.7 MB, free: 1.301 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.055e-05/0.4607, allocations: 0 / 491.7 MB, free: 1.301 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000172/0.4609, allocations: 34.3 kB / 491.7 MB, free: 1.27 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.784e-05/0.4609, allocations: 15.19 kB / 491.7 MB, free: 1.258 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 29 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.236e-05/0.4609, allocations: 119.9 kB / 491.8 MB, free: 1.141 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.125e-05/0.461, allocations: 15.81 kB / 491.8 MB, free: 1.125 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002655/0.4613, allocations: 169.2 kB / 492 MB, free: 1 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.427e-06/0.4613, allocations: 0 / 492 MB, free: 1 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.4613, allocations: 4 kB / 492 MB, free: 0.9961 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.047e-06/0.4613, allocations: 0 / 492 MB, free: 0.9961 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002794/0.4616, allocations: 319.6 kB / 492.3 MB, free: 0.6758 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.4616, allocations: 0 / 492.3 MB, free: 0.6758 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002624/0.4619, allocations: 59.92 kB / 492.4 MB, free: 0.6172 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.449e-06/0.4619, allocations: 0 / 492.4 MB, free: 0.6172 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.745e-05/0.4619, allocations: 4 kB / 492.4 MB, free: 0.6133 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.775e-06/0.4619, allocations: 5.5 kB / 492.4 MB, free: 0.6094 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.4619, allocations: 3.938 kB / 492.4 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003275/0.4623, allocations: 303.2 kB / 492.7 MB, free: 300 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.189e-05/0.4623, allocations: 92.86 kB / 492.8 MB, free: 188 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.472e-05/0.4624, allocations: 16.75 kB / 492.8 MB, free: 172 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001765/0.4625, allocations: 23.97 kB / 492.8 MB, free: 148 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.084e-05/0.4626, allocations: 11.97 kB / 492.8 MB, free: 136 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.192e-05/0.4626, allocations: 4 kB / 492.8 MB, free: 132 kB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001472/0.4628, allocations: 155.5 kB / 493 MB, free: 15.98 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4628, allocations: 0 / 493 MB, free: 15.98 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000379/0.4632, allocations: 79.69 kB / 493.1 MB, free: 15.9 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (sineVoltage.phi,inductor1.i,capacitor1.v,cosineVoltage.phi,inductor2.i,capacitor2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 19 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008348/0.464, allocations: 0.8633 MB / 493.9 MB, free: 15.02 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002716/0.4643, allocations: 126.7 kB / 494.1 MB, free: 14.9 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.047e-06/0.4643, allocations: 0 / 494.1 MB, free: 14.9 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.47e-05/0.4644, allocations: 72.11 kB / 494.1 MB, free: 14.83 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002857/0.4647, allocations: 20.94 kB / 494.2 MB, free: 14.81 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001459/0.4662, allocations: 0.7568 MB / 494.9 MB, free: 14.03 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003082/0.4665, allocations: 0.7716 MB / 495.7 MB, free: 13.23 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001017/0.4666, allocations: 22.06 kB / 495.7 MB, free: 13.2 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001182/0.4667, allocations: 91.41 kB / 495.8 MB, free: 13.12 MB / 362.7 MB Notification: Performance of SimCode: time 4.81e-07/0.4667, allocations: 0 / 495.8 MB, free: 13.12 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01682/0.4836, allocations: 4.022 MB / 499.8 MB, free: 9.309 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002084/0.4838, allocations: 154.9 kB / 500 MB, free: 9.086 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.702/2.186, allocations: 0 / 500 MB, free: 9.086 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_SeriesResonance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_SeriesResonance.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance_res.mat does not exist to compare? outputFormat=mat