Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Electrical_Analog_Examples_ChuaCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ChuaCircuit,fileNamePrefix="Modelica_3_2_3_cpp_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.001606/0.001606, allocations: 185.7 kB / 16.4 MB, free: 5.746 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.018/2.018, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001126/0.001125, allocations: 90.84 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003802/0.0003801, allocations: 8 kB / 327.1 MB, free: 116 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3326/0.333, allocations: 47.57 MB / 374.6 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1366/0.4697, allocations: 76.39 MB / 451 MB, free: 4.363 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002699/0.4701, allocations: 67.97 kB / 451.1 MB, free: 4.297 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01325/0.4833, allocations: 3.115 MB / 454.2 MB, free: 1.172 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.4834, allocations: 0 / 454.2 MB, free: 1.172 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.773e-05/0.4834, allocations: 4 kB / 454.2 MB, free: 1.168 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.0009013/0.4843, allocations: 474.6 kB / 454.7 MB, free: 0.6562 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.951e-05/0.4844, allocations: 8.031 kB / 454.7 MB, free: 0.6484 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.525e-05/0.4845, allocations: 50.55 kB / 454.7 MB, free: 0.5898 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.901e-05/0.4846, allocations: 23.81 kB / 454.8 MB, free: 0.5664 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002961/0.4849, allocations: 210.8 kB / 455 MB, free: 328 kB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.744e-05/0.4849, allocations: 19.89 kB / 455 MB, free: 308 kB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.1e-05/0.485, allocations: 27.94 kB / 455 MB, free: 280 kB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005469/0.4855, allocations: 177.5 kB / 455.2 MB, free: 96 kB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.501e-05/0.4856, allocations: 4 kB / 455.2 MB, free: 92 kB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.148e-05/0.4856, allocations: 8 kB / 455.2 MB, free: 84 kB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.074e-05/0.4856, allocations: 4 kB / 455.2 MB, free: 80 kB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005838/0.4862, allocations: 147.9 kB / 455.3 MB, free: 15.93 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001843/0.4881, allocations: 0.7721 MB / 456.1 MB, free: 15.09 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006769/0.4888, allocations: 170.5 kB / 456.3 MB, free: 14.92 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.308e-05/0.4888, allocations: 4 kB / 456.3 MB, free: 14.91 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.465e-05/0.4889, allocations: 30.56 kB / 456.3 MB, free: 14.88 MB / 346.7 MB Notification: Performance of pre-optimization done (n=13): time 5.24e-06/0.4889, allocations: 3.984 kB / 456.3 MB, free: 14.87 MB / 346.7 MB Notification: Performance of matching and sorting (n=13): time 0.0007611/0.4897, allocations: 193.8 kB / 456.5 MB, free: 14.68 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.906e-05/0.4897, allocations: 63.34 kB / 456.6 MB, free: 14.6 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001766/0.4899, allocations: 141.6 kB / 456.7 MB, free: 14.46 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.502e-05/0.49, allocations: 29.7 kB / 456.7 MB, free: 14.42 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001136/0.4901, allocations: 202.5 kB / 456.9 MB, free: 14.22 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.849e-05/0.4902, allocations: 51.3 kB / 457 MB, free: 14.17 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.298e-05/0.4902, allocations: 0 / 457 MB, free: 14.17 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001266/0.4903, allocations: 321 kB / 457.3 MB, free: 13.85 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002142/0.4906, allocations: 51.97 kB / 457.3 MB, free: 13.8 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000239/0.4908, allocations: 79.73 kB / 457.4 MB, free: 13.72 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002295/0.4911, allocations: 56.94 kB / 457.5 MB, free: 13.66 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.22e-06/0.4911, allocations: 3.984 kB / 457.5 MB, free: 13.66 MB / 346.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005682/0.4917, allocations: 179.1 kB / 457.7 MB, free: 13.48 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.206e-05/0.4917, allocations: 12.03 kB / 457.7 MB, free: 13.47 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.4917, allocations: 0 / 457.7 MB, free: 13.47 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.08e-05/0.4917, allocations: 3.953 kB / 457.7 MB, free: 13.46 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003915/0.4921, allocations: 43.97 kB / 457.7 MB, free: 13.42 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.564e-06/0.4922, allocations: 0 / 457.7 MB, free: 13.42 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002022/0.4924, allocations: 19.84 kB / 457.7 MB, free: 13.4 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.789e-05/0.4924, allocations: 4 kB / 457.7 MB, free: 13.4 MB / 346.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 () * Number of clocked 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 0.0001743/0.4926, allocations: 133.8 kB / 457.9 MB, free: 13.26 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.46e-05/0.4926, allocations: 11.91 kB / 457.9 MB, free: 13.25 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.548e-05/0.4927, allocations: 16.84 kB / 457.9 MB, free: 13.23 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.4927, allocations: 0 / 457.9 MB, free: 13.23 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.02e-05/0.4927, allocations: 3.953 kB / 457.9 MB, free: 13.23 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/0.4928, allocations: 3.938 kB / 457.9 MB, free: 13.23 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004123/0.4932, allocations: 261.5 kB / 458.2 MB, free: 12.92 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.756e-06/0.4932, allocations: 4 kB / 458.2 MB, free: 12.92 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003981/0.4936, allocations: 43.91 kB / 458.2 MB, free: 12.88 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.069e-06/0.4936, allocations: 7.938 kB / 458.2 MB, free: 12.87 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.741e-05/0.4937, allocations: 4 kB / 458.2 MB, free: 12.86 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.4937, allocations: 0 / 458.2 MB, free: 12.86 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.4937, allocations: 0 / 458.2 MB, free: 12.86 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008272/0.4945, allocations: 317.6 kB / 458.5 MB, free: 12.54 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.129e-05/0.4946, allocations: 88.86 kB / 458.6 MB, free: 12.43 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.813e-05/0.4947, allocations: 8 kB / 458.6 MB, free: 12.43 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002417/0.4949, allocations: 11.98 kB / 458.6 MB, free: 12.41 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.712e-05/0.495, allocations: 15.98 kB / 458.7 MB, free: 12.4 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.649e-05/0.495, allocations: 4 kB / 458.7 MB, free: 12.39 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001266/0.4951, allocations: 119.8 kB / 458.8 MB, free: 12.28 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.4952, allocations: 0 / 458.8 MB, free: 12.28 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003838/0.4955, allocations: 47.84 kB / 458.8 MB, free: 12.23 MB / 346.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 () * Number of clocked 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.001085/0.4966, allocations: 0.8451 MB / 459.7 MB, free: 11.36 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0005208/0.4972, allocations: 127.9 kB / 459.8 MB, free: 11.23 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.4972, allocations: 8.062 kB / 459.8 MB, free: 11.22 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002227/0.4974, allocations: 62.53 kB / 459.9 MB, free: 11.16 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003901/0.4978, allocations: 27.97 kB / 459.9 MB, free: 11.14 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002893/0.5008, allocations: 1.373 MB / 461.3 MB, free: 9.711 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003409/0.5011, allocations: 0.7243 MB / 462 MB, free: 8.961 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001383/0.5013, allocations: 47.42 kB / 462 MB, free: 8.914 MB / 346.7 MB Notification: Performance of SimCode: time 1.032e-06/0.5013, allocations: 0 / 462 MB, free: 8.914 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.367/2.869, allocations: 2.735 MB / 464.8 MB, free: 6.188 MB / 346.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ChuaCircuit.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ChuaCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ChuaCircuit.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ChuaCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ChuaCircuit_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_ChuaCircuit_fmu --startTime=0 --stopTime=50000 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_ChuaCircuit.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ChuaCircuit.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ChuaCircuit_res.mat does not exist to compare? outputFormat=mat