Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ResonanceCircuits,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ResonanceCircuits",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ResonanceCircuits,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ResonanceCircuits",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001075/0.001075, allocations: 180.1 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.457/1.457, allocations: 205.4 MB / 223.1 MB, free: 9.129 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008825/0.0008827, allocations: 99.75 kB / 271.5 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002656/0.0002657, allocations: 4 kB / 328.3 MB, free: 15.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2411/0.2414, allocations: 47.56 MB / 375.9 MB, free: 45.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09531/0.3368, allocations: 81.32 MB / 457.2 MB, free: 15.33 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002301/0.337, allocations: 75.91 kB / 457.3 MB, free: 15.25 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04007/0.3771, allocations: 16 MB / 473.3 MB, free: 14.94 MB / 362.7 MB Notification: Performance of FrontEnd: time 4.067e-06/0.3772, allocations: 0 / 473.3 MB, free: 14.94 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.915e-05/0.3773, allocations: 35.98 kB / 473.3 MB, free: 14.91 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 252 * Number of variables: 252 Notification: Performance of Generate backend data structure: time 0.002002/0.3793, allocations: 1.13 MB / 474.5 MB, free: 13.72 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.851e-05/0.3794, allocations: 12.03 kB / 474.5 MB, free: 13.71 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001749/0.3796, allocations: 148.2 kB / 474.6 MB, free: 13.56 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001771/0.3798, allocations: 126.4 kB / 474.7 MB, free: 13.43 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009083/0.3807, allocations: 0.5549 MB / 475.3 MB, free: 12.84 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.648e-05/0.3808, allocations: 74 kB / 475.4 MB, free: 12.77 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001286/0.3809, allocations: 96 kB / 475.5 MB, free: 12.67 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001606/0.3825, allocations: 1.023 MB / 476.5 MB, free: 11.53 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.995e-05/0.3825, allocations: 3.938 kB / 476.5 MB, free: 11.52 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.76e-05/0.3826, allocations: 44 kB / 476.5 MB, free: 11.48 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.83e-05/0.3827, allocations: 35.98 kB / 476.6 MB, free: 11.45 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001101/0.3838, allocations: 0.5578 MB / 477.1 MB, free: 10.89 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005344/0.3891, allocations: 5.54 MB / 482.7 MB, free: 5.062 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005922/0.3898, allocations: 233 kB / 482.9 MB, free: 4.816 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002223/0.39, allocations: 93.08 kB / 483 MB, free: 4.707 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.819e-05/0.3901, allocations: 38.56 kB / 483 MB, free: 4.66 MB / 362.7 MB Notification: Performance of pre-optimization done (n=28): time 2.825e-06/0.3901, allocations: 0 / 483 MB, free: 4.66 MB / 362.7 MB Notification: Performance of matching and sorting (n=38): time 0.003944/0.394, allocations: 1.712 MB / 484.7 MB, free: 2.848 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.073e-05/0.3941, allocations: 81.3 kB / 484.8 MB, free: 2.75 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007108/0.3948, allocations: 0.5466 MB / 485.4 MB, free: 2.191 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.263e-05/0.3949, allocations: 29.7 kB / 485.4 MB, free: 2.156 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004692/0.3953, allocations: 0.5948 MB / 486 MB, free: 1.551 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001389/0.3955, allocations: 142.1 kB / 486.1 MB, free: 1.41 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.882e-05/0.3955, allocations: 16 kB / 486.1 MB, free: 1.395 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002432/0.3958, allocations: 382.8 kB / 486.5 MB, free: 1.012 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003079/0.3961, allocations: 161.9 kB / 486.7 MB, free: 0.8555 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005822/0.3967, allocations: 497.1 kB / 487.2 MB, free: 212 kB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004259/0.3971, allocations: 236 kB / 487.4 MB, free: 15.98 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.414e-06/0.3971, allocations: 7.984 kB / 487.4 MB, free: 15.97 MB / 378.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001199/0.3983, allocations: 0.715 MB / 488.1 MB, free: 15.25 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.029e-05/0.3984, allocations: 12 kB / 488.1 MB, free: 15.23 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.946e-05/0.3984, allocations: 15.98 kB / 488.1 MB, free: 15.22 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.64e-05/0.3985, allocations: 23.92 kB / 488.2 MB, free: 15.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006415/0.3991, allocations: 192.3 kB / 488.3 MB, free: 15.01 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.911e-05/0.3992, allocations: 27.88 kB / 488.4 MB, free: 14.98 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003618/0.3995, allocations: 36 kB / 488.4 MB, free: 14.95 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.904e-05/0.3996, allocations: 43.92 kB / 488.4 MB, free: 14.9 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * 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 (94): * Single equations (assignments): 94 * 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 0.0004167/0.4, allocations: 221.5 kB / 488.7 MB, free: 14.68 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001334/0.4002, allocations: 75.06 kB / 488.7 MB, free: 14.6 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001601/0.4003, allocations: 74.55 kB / 488.8 MB, free: 14.52 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.027e-06/0.4004, allocations: 7.984 kB / 488.8 MB, free: 14.52 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.078e-05/0.4004, allocations: 7.828 kB / 488.8 MB, free: 14.51 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.183e-06/0.4004, allocations: 3.953 kB / 488.8 MB, free: 14.51 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002187/0.4026, allocations: 1.299 MB / 490.1 MB, free: 13.15 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.751e-06/0.4026, allocations: 4 kB / 490.1 MB, free: 13.15 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000476/0.4031, allocations: 107.9 kB / 490.2 MB, free: 13.04 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.07e-06/0.4031, allocations: 4.031 kB / 490.2 MB, free: 13.04 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.637e-05/0.4031, allocations: 8 kB / 490.2 MB, free: 13.03 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.026e-06/0.4031, allocations: 0 / 490.2 MB, free: 13.03 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.4031, allocations: 4 kB / 490.3 MB, free: 13.03 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001037/0.4042, allocations: 0.7206 MB / 491 MB, free: 12.27 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001848/0.4044, allocations: 136.2 kB / 491.1 MB, free: 12.12 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.463e-05/0.4045, allocations: 12 kB / 491.1 MB, free: 12.11 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002889/0.4048, allocations: 23.98 kB / 491.1 MB, free: 12.09 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.758e-05/0.4049, allocations: 27.92 kB / 491.2 MB, free: 12.06 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.435e-05/0.4049, allocations: 15.98 kB / 491.2 MB, free: 12.04 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005336/0.4054, allocations: 415 kB / 491.6 MB, free: 11.64 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4054, allocations: 0 / 491.6 MB, free: 11.64 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007086/0.4061, allocations: 143.9 kB / 491.7 MB, free: 11.5 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (inductor2.i,capacitor2.v,inductor1.i,capacitor1.v) * 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 (38): * Single equations (assignments): 38 * 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.001526/0.4077, allocations: 1.41 MB / 493.1 MB, free: 10.05 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009634/0.4087, allocations: 448.5 kB / 493.6 MB, free: 9.617 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.918e-06/0.4087, allocations: 0 / 493.6 MB, free: 9.617 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002762/0.409, allocations: 155.8 kB / 493.7 MB, free: 9.465 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004538/0.4094, allocations: 73.67 kB / 493.8 MB, free: 9.395 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1966/0.606, allocations: 12.44 MB / 0.4944 GB, free: 103.9 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007677/0.6069, allocations: 1.027 MB / 0.4954 GB, free: 103.2 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004214/0.6073, allocations: 88.23 kB / 0.4955 GB, free: 103.2 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000524/0.6078, allocations: 395 kB / 0.4958 GB, free: 103.2 MB / 378.7 MB Notification: Performance of SimCode: time 1.313e-06/0.6078, allocations: 0 / 0.4958 GB, free: 103.2 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02797/0.6358, allocations: 11.38 MB / 0.507 GB, free: 102 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001654/0.636, allocations: 187.9 kB / 0.5071 GB, free: 101.8 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.356/2.992, allocations: 4 kB / 0.5071 GB, free: 101.8 MB / 378.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ResonanceCircuits_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ResonanceCircuits.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat does not exist to compare? outputFormat=mat