Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ChuaCircuit.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.ChuaCircuit,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ChuaCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ChuaCircuit,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ChuaCircuit",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.0009547/0.0009544, allocations: 171.9 kB / 14.1 MB, free: 1.223 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.357/1.357, allocations: 205.2 MB / 219.8 MB, free: 14.21 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.0008429/0.0008429, allocations: 82.72 kB / 268 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.863e-05/2.873e-05, allocations: 0 / 322.5 MB, free: 17.26 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08469/0.08474, allocations: 47.57 MB / 370.1 MB, free: 1.617 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2724/0.3572, allocations: 76.3 MB / 446.4 MB, free: 0.9648 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002344/0.3575, allocations: 64.16 kB / 446.5 MB, free: 0.9336 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007981/0.3655, allocations: 3.116 MB / 449.6 MB, free: 14.27 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.3655, allocations: 0 / 449.6 MB, free: 14.27 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.187e-05/0.3655, allocations: 4 kB / 449.6 MB, free: 14.27 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0005323/0.3661, allocations: 473.7 kB / 450.1 MB, free: 13.77 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.3661, allocations: 8.031 kB / 450.1 MB, free: 13.77 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.984e-05/0.3662, allocations: 52.73 kB / 450.1 MB, free: 13.71 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.027e-05/0.3662, allocations: 19.72 kB / 450.1 MB, free: 13.7 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002147/0.3664, allocations: 213.7 kB / 450.3 MB, free: 13.46 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.815e-05/0.3665, allocations: 17.39 kB / 450.4 MB, free: 13.45 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.402e-05/0.3665, allocations: 22.53 kB / 450.4 MB, free: 13.43 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002611/0.3668, allocations: 159.4 kB / 450.5 MB, free: 13.32 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-06/0.3668, allocations: 0 / 450.5 MB, free: 13.32 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.909e-05/0.3668, allocations: 10.81 kB / 450.6 MB, free: 13.32 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.516e-06/0.3668, allocations: 8 kB / 450.6 MB, free: 13.31 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001931/0.367, allocations: 120.5 kB / 450.7 MB, free: 13.23 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001057/0.3681, allocations: 0.7599 MB / 451.4 MB, free: 12.53 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002269/0.3683, allocations: 134.6 kB / 451.6 MB, free: 12.43 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001114/0.3685, allocations: 85.05 kB / 451.7 MB, free: 12.37 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.401e-05/0.3685, allocations: 4 kB / 451.7 MB, free: 12.37 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.981e-05/0.3685, allocations: 34.19 kB / 451.7 MB, free: 12.33 MB / 330.7 MB Notification: Performance of pre-optimization done (n=13): time 1.273e-06/0.3685, allocations: 0 / 451.7 MB, free: 12.33 MB / 330.7 MB Notification: Performance of matching and sorting (n=13): time 0.0002225/0.3687, allocations: 128.2 kB / 451.8 MB, free: 12.22 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.684e-05/0.3688, allocations: 55.36 kB / 451.9 MB, free: 12.16 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001091/0.3689, allocations: 144.2 kB / 452 MB, free: 12.02 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.532e-05/0.3689, allocations: 25.7 kB / 452 MB, free: 11.99 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.954e-05/0.369, allocations: 135 kB / 452.2 MB, free: 11.86 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.19e-05/0.369, allocations: 50.67 kB / 452.2 MB, free: 11.82 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.033e-06/0.369, allocations: 3.75 kB / 452.2 MB, free: 11.82 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.264e-05/0.3691, allocations: 318.5 kB / 452.5 MB, free: 11.5 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.334e-05/0.3692, allocations: 42.31 kB / 452.6 MB, free: 11.48 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.336e-05/0.3693, allocations: 60.83 kB / 452.6 MB, free: 11.43 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.465e-05/0.3694, allocations: 49.98 kB / 452.7 MB, free: 11.4 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.3694, allocations: 0 / 452.7 MB, free: 11.4 MB / 330.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002042/0.3696, allocations: 160.9 kB / 452.8 MB, free: 11.28 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.243e-05/0.3696, allocations: 4 kB / 452.8 MB, free: 11.27 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.3696, allocations: 0 / 452.8 MB, free: 11.27 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.367e-05/0.3696, allocations: 7.953 kB / 452.8 MB, free: 11.27 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002069/0.3698, allocations: 43.91 kB / 452.9 MB, free: 11.22 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.135e-06/0.3698, allocations: 4 kB / 452.9 MB, free: 11.22 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.886e-05/0.37, allocations: 19.52 kB / 452.9 MB, free: 11.2 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.155e-05/0.37, allocations: 4 kB / 452.9 MB, free: 11.2 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 prepare postOptimizeDAE: time 6.066e-05/0.37, allocations: 112.8 kB / 453 MB, free: 11.09 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.539e-05/0.3701, allocations: 11.91 kB / 453 MB, free: 11.07 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.686e-05/0.3701, allocations: 19.67 kB / 453.1 MB, free: 11.07 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.3701, allocations: 7.953 kB / 453.1 MB, free: 11.06 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/0.3701, allocations: 0 / 453.1 MB, free: 11.06 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.334e-06/0.3701, allocations: 0 / 453.1 MB, free: 11.06 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002425/0.3704, allocations: 272.1 kB / 453.3 MB, free: 10.78 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.3704, allocations: 0 / 453.3 MB, free: 10.78 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002061/0.3706, allocations: 47.91 kB / 453.4 MB, free: 10.73 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.3706, allocations: 0 / 453.4 MB, free: 10.73 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.088e-05/0.3706, allocations: 0 / 453.4 MB, free: 10.73 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.3706, allocations: 0 / 453.4 MB, free: 10.73 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.3707, allocations: 3.953 kB / 453.4 MB, free: 10.73 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002791/0.3709, allocations: 268.9 kB / 453.6 MB, free: 10.5 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.706e-05/0.371, allocations: 92.36 kB / 453.7 MB, free: 10.39 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.165e-05/0.371, allocations: 4 kB / 453.7 MB, free: 10.39 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001654/0.3712, allocations: 19.61 kB / 453.8 MB, free: 10.38 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.489e-05/0.3712, allocations: 7.938 kB / 453.8 MB, free: 10.37 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.557e-05/0.3713, allocations: 15.94 kB / 453.8 MB, free: 10.35 MB / 330.7 MB Notification: Performance of sorting global known variables: time 6.758e-05/0.3713, allocations: 112.8 kB / 453.9 MB, free: 10.25 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3713, allocations: 0 / 453.9 MB, free: 10.25 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003718/0.3717, allocations: 46.97 kB / 453.9 MB, free: 10.21 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (L.i,C1.v,C2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 13 * 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.0005159/0.3722, allocations: 0.8149 MB / 454.8 MB, free: 9.422 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001767/0.3724, allocations: 95.31 kB / 454.8 MB, free: 9.359 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.3724, allocations: 0 / 454.8 MB, free: 9.359 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.492e-05/0.3725, allocations: 55.25 kB / 454.9 MB, free: 9.32 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002192/0.3727, allocations: 28.06 kB / 454.9 MB, free: 9.301 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008421/0.3736, allocations: 451.1 kB / 455.4 MB, free: 8.852 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002316/0.3738, allocations: 0.7359 MB / 456.1 MB, free: 8.09 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 6.894e-05/0.3739, allocations: 9.219 kB / 456.1 MB, free: 8.074 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.505e-05/0.374, allocations: 57.47 kB / 456.2 MB, free: 8.051 MB / 330.7 MB Notification: Performance of SimCode: time 2.5e-07/0.374, allocations: 0 / 456.2 MB, free: 8.051 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01654/0.3905, allocations: 2.928 MB / 459.1 MB, free: 5.129 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002673/0.3909, allocations: 149.8 kB / 459.2 MB, free: 4.906 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.502/1.893, allocations: 0 / 459.2 MB, free: 4.906 MB / 330.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ChuaCircuit.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ChuaCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ChuaCircuit.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ChuaCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ChuaCircuit_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ChuaCircuit_fmu --startTime=0 --stopTime=50000 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ChuaCircuit.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ChuaCircuit.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ChuaCircuit_res.mat does not exist to compare? outputFormat=mat