Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ParallelResonance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ParallelResonance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ParallelResonance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ParallelResonance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000988/0.0009879, allocations: 174.7 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.319/1.319, allocations: 221.3 MB / 235.5 MB, free: 2.938 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008754/0.0008752, allocations: 91.84 kB / 286.5 MB, free: 212 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.606e-05/2.62e-05, allocations: 4 kB / 343.9 MB, free: 4.191 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08928/0.08932, allocations: 50.41 MB / 394.3 MB, free: 1.738 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2868/0.3761, allocations: 79.31 MB / 473.7 MB, free: 8.129 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001861/0.3763, allocations: 67.97 kB / 473.7 MB, free: 8.062 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01388/0.3902, allocations: 5.154 MB / 478.9 MB, free: 2.895 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.3903, allocations: 4 kB / 478.9 MB, free: 2.891 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.671e-05/0.3903, allocations: 4 kB / 478.9 MB, free: 2.887 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.0007448/0.3911, allocations: 0.546 MB / 479.4 MB, free: 2.297 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.883e-05/0.3911, allocations: 8.031 kB / 479.4 MB, free: 2.289 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.144e-05/0.3912, allocations: 70.53 kB / 479.5 MB, free: 2.211 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.831e-05/0.3913, allocations: 35.53 kB / 479.5 MB, free: 2.176 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003094/0.3916, allocations: 254.5 kB / 479.8 MB, free: 1.887 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.363e-05/0.3916, allocations: 28.78 kB / 479.8 MB, free: 1.859 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.971e-05/0.3917, allocations: 32 kB / 479.9 MB, free: 1.828 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004332/0.3921, allocations: 263.7 kB / 480.1 MB, free: 1.562 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.508e-06/0.3921, allocations: 0 / 480.1 MB, free: 1.562 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.173e-05/0.3922, allocations: 16 kB / 480.1 MB, free: 1.547 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.708e-06/0.3922, allocations: 15.92 kB / 480.1 MB, free: 1.531 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003332/0.3925, allocations: 183.1 kB / 480.3 MB, free: 1.348 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001595/0.3941, allocations: 1.062 MB / 481.4 MB, free: 216 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002378/0.3944, allocations: 143 kB / 481.5 MB, free: 64 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002035/0.3946, allocations: 120.7 kB / 481.6 MB, free: 15.94 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.756e-05/0.3946, allocations: 0 / 481.6 MB, free: 15.94 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.811e-05/0.3947, allocations: 38.56 kB / 481.7 MB, free: 15.89 MB / 362.7 MB Notification: Performance of pre-optimization done (n=19): time 1.353e-06/0.3947, allocations: 0 / 481.7 MB, free: 15.89 MB / 362.7 MB Notification: Performance of matching and sorting (n=19): time 0.0002899/0.395, allocations: 142 kB / 481.8 MB, free: 15.75 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.89e-05/0.395, allocations: 55.41 kB / 481.9 MB, free: 15.68 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001926/0.3952, allocations: 205.9 kB / 482.1 MB, free: 15.48 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.471e-05/0.3953, allocations: 29.7 kB / 482.1 MB, free: 15.44 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001091/0.3954, allocations: 183.8 kB / 482.3 MB, free: 15.26 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.975e-05/0.3955, allocations: 74.98 kB / 482.4 MB, free: 15.18 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.738e-06/0.3955, allocations: 4 kB / 482.4 MB, free: 15.18 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001223/0.3956, allocations: 338.8 kB / 482.7 MB, free: 14.84 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.534e-05/0.3957, allocations: 52.56 kB / 482.7 MB, free: 14.79 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001471/0.3959, allocations: 130.5 kB / 482.9 MB, free: 14.63 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001291/0.396, allocations: 76.78 kB / 482.9 MB, free: 14.55 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.396, allocations: 0 / 482.9 MB, free: 14.55 MB / 362.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.000364/0.3964, allocations: 242.8 kB / 483.2 MB, free: 14.31 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.71e-05/0.3964, allocations: 9.359 kB / 483.2 MB, free: 14.3 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.675e-06/0.3964, allocations: 4 kB / 483.2 MB, free: 14.3 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.441e-05/0.3965, allocations: 8.25 kB / 483.2 MB, free: 14.29 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003021/0.3968, allocations: 71.91 kB / 483.3 MB, free: 14.22 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.322e-05/0.3968, allocations: 11.92 kB / 483.3 MB, free: 14.21 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001651/0.397, allocations: 35.69 kB / 483.3 MB, free: 14.18 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.698e-05/0.397, allocations: 8 kB / 483.3 MB, free: 14.17 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 33 * 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 8.411e-05/0.3971, allocations: 116.9 kB / 483.4 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.24e-05/0.3971, allocations: 23.8 kB / 483.5 MB, free: 14.02 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002944/0.3974, allocations: 178.8 kB / 483.6 MB, free: 13.84 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.419e-06/0.3974, allocations: 4 kB / 483.6 MB, free: 13.84 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.487e-06/0.3975, allocations: 0 / 483.6 MB, free: 13.84 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.542e-06/0.3975, allocations: 3.984 kB / 483.6 MB, free: 13.84 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006686/0.3981, allocations: 0.5729 MB / 484.2 MB, free: 13.2 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.3982, allocations: 3.938 kB / 484.2 MB, free: 13.2 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002892/0.3984, allocations: 64.08 kB / 484.3 MB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.603e-06/0.3985, allocations: 7.938 kB / 484.3 MB, free: 13.13 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.78e-05/0.3985, allocations: 8 kB / 484.3 MB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.3985, allocations: 0 / 484.3 MB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.3985, allocations: 0 / 484.3 MB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003921/0.3989, allocations: 367.2 kB / 484.7 MB, free: 12.73 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.29e-05/0.399, allocations: 100.8 kB / 484.8 MB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.139e-05/0.399, allocations: 8.062 kB / 484.8 MB, free: 12.6 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001802/0.3992, allocations: 19.98 kB / 484.8 MB, free: 12.58 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.661e-05/0.3993, allocations: 15.98 kB / 484.8 MB, free: 12.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.157e-05/0.3993, allocations: 4 kB / 484.8 MB, free: 12.56 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001251/0.3994, allocations: 156.6 kB / 485 MB, free: 12.41 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.382e-06/0.3994, allocations: 0 / 485 MB, free: 12.41 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003241/0.3997, allocations: 91.58 kB / 485 MB, free: 12.32 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (sineCurrent.phi,inductor1.i,capacitor1.v,cosineCurrent.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 (21): * Single equations (assignments): 21 * 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.0007306/0.4005, allocations: 1.039 MB / 486.1 MB, free: 11.24 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002718/0.4008, allocations: 148.4 kB / 486.2 MB, free: 11.1 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.4008, allocations: 3.938 kB / 486.2 MB, free: 11.09 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.815e-05/0.4009, allocations: 64.5 kB / 486.3 MB, free: 11.03 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002547/0.4011, allocations: 30.95 kB / 486.3 MB, free: 11 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001239/0.4024, allocations: 0.765 MB / 487.1 MB, free: 10.2 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000336/0.4027, allocations: 0.7755 MB / 487.9 MB, free: 9.402 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001067/0.4028, allocations: 26.06 kB / 487.9 MB, free: 9.371 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001247/0.403, allocations: 91.41 kB / 488 MB, free: 9.281 MB / 362.7 MB Notification: Performance of SimCode: time 2.51e-07/0.403, allocations: 0 / 488 MB, free: 9.281 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01491/0.4179, allocations: 4.152 MB / 492.1 MB, free: 5.27 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002302/0.4182, allocations: 156.3 kB / 492.3 MB, free: 5.047 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.631/2.049, allocations: 0 / 492.3 MB, free: 5.047 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ParallelResonance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ParallelResonance.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance_res.mat does not exist to compare? outputFormat=mat