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.002271/0.002271, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.228/2.228, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001089/0.001089, allocations: 97.77 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 3.02e-05/3.028e-05, allocations: 8 kB / 314.9 MB, free: 9.062 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3549/0.355, allocations: 47.57 MB / 362.4 MB, free: 45.75 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1482/0.5032, allocations: 75.64 MB / 438.1 MB, free: 10.59 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002934/0.5036, allocations: 64.97 kB / 438.1 MB, free: 10.53 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.01361/0.5172, allocations: 3.084 MB / 441.2 MB, free: 7.473 MB / 331.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.5173, allocations: 0 / 441.2 MB, free: 7.473 MB / 331.1 MB Notification: Performance of Transformations before backend: time 1.961e-05/0.5173, allocations: 4 kB / 441.2 MB, free: 7.469 MB / 331.1 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.0009173/0.5182, allocations: 464.5 kB / 441.7 MB, free: 6.977 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.643e-05/0.5183, allocations: 8.031 kB / 441.7 MB, free: 6.969 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.367e-05/0.5184, allocations: 27.25 kB / 441.7 MB, free: 6.945 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003436/0.5187, allocations: 214.8 kB / 441.9 MB, free: 6.695 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.721e-05/0.5188, allocations: 11.95 kB / 441.9 MB, free: 6.684 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.049e-05/0.5188, allocations: 11.91 kB / 441.9 MB, free: 6.672 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003498/0.5192, allocations: 108 kB / 442 MB, free: 6.566 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004201/0.5196, allocations: 134.7 kB / 442.2 MB, free: 6.43 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.371e-05/0.5197, allocations: 0 / 442.2 MB, free: 6.43 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.056e-05/0.5197, allocations: 0 / 442.2 MB, free: 6.43 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.169e-05/0.5197, allocations: 9.734 kB / 442.2 MB, free: 6.422 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001825/0.5216, allocations: 0.7162 MB / 442.9 MB, free: 5.648 MB / 331.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003864/0.522, allocations: 130.6 kB / 443 MB, free: 5.512 MB / 331.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000197/0.5222, allocations: 80.78 kB / 443.1 MB, free: 5.43 MB / 331.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.736e-05/0.5222, allocations: 0 / 443.1 MB, free: 5.43 MB / 331.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.305e-05/0.5223, allocations: 38.56 kB / 443.1 MB, free: 5.383 MB / 331.1 MB Notification: Performance of pre-optimization done (n=13): time 1.923e-06/0.5223, allocations: 0 / 443.1 MB, free: 5.383 MB / 331.1 MB Notification: Performance of matching and sorting (n=13): time 0.0003689/0.5227, allocations: 115.7 kB / 443.3 MB, free: 5.266 MB / 331.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.957e-05/0.5227, allocations: 59.41 kB / 443.3 MB, free: 5.195 MB / 331.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001625/0.5229, allocations: 132.1 kB / 443.4 MB, free: 5.059 MB / 331.1 MB Notification: Performance of collectPreVariables (initialization): time 3.107e-05/0.5229, allocations: 25.7 kB / 443.5 MB, free: 5.027 MB / 331.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001241/0.5231, allocations: 206.5 kB / 443.7 MB, free: 4.824 MB / 331.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.801e-05/0.5232, allocations: 43.36 kB / 443.7 MB, free: 4.781 MB / 331.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.022e-05/0.5232, allocations: 0 / 443.7 MB, free: 4.781 MB / 331.1 MB Notification: Performance of setup shared object (initialization): time 0.0001609/0.5233, allocations: 318.8 kB / 444 MB, free: 4.461 MB / 331.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001159/0.5235, allocations: 39.94 kB / 444.1 MB, free: 4.422 MB / 331.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001306/0.5236, allocations: 61.72 kB / 444.1 MB, free: 4.355 MB / 331.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001329/0.5238, allocations: 39.98 kB / 444.2 MB, free: 4.316 MB / 331.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.756e-06/0.5238, allocations: 0 / 444.2 MB, free: 4.316 MB / 331.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003405/0.5241, allocations: 136.1 kB / 444.3 MB, free: 4.18 MB / 331.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.236e-05/0.5242, allocations: 4 kB / 444.3 MB, free: 4.176 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.5242, allocations: 0 / 444.3 MB, free: 4.176 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.869e-05/0.5242, allocations: 6.156 kB / 444.3 MB, free: 4.172 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000418/0.5246, allocations: 55.39 kB / 444.4 MB, free: 4.121 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.736e-06/0.5247, allocations: 4 kB / 444.4 MB, free: 4.117 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001863/0.5249, allocations: 11.84 kB / 444.4 MB, free: 4.105 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.894e-05/0.5249, allocations: 4 kB / 444.4 MB, free: 4.102 MB / 331.1 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 0.000111/0.525, allocations: 112.9 kB / 444.5 MB, free: 3.984 MB / 331.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002847/0.5253, allocations: 111.5 kB / 444.6 MB, free: 3.871 MB / 331.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.9e-05/0.5254, allocations: 11.91 kB / 444.6 MB, free: 3.859 MB / 331.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.602e-05/0.5254, allocations: 20.69 kB / 444.6 MB, free: 3.84 MB / 331.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.001e-06/0.5255, allocations: 8 kB / 444.6 MB, free: 3.832 MB / 331.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.5255, allocations: 0 / 444.6 MB, free: 3.832 MB / 331.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.928e-06/0.5255, allocations: 0 / 444.6 MB, free: 3.832 MB / 331.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003813/0.5259, allocations: 226.1 kB / 444.9 MB, free: 3.574 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.5259, allocations: 3.938 kB / 444.9 MB, free: 3.566 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003972/0.5263, allocations: 31.98 kB / 444.9 MB, free: 3.535 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.316e-06/0.5263, allocations: 4 kB / 444.9 MB, free: 3.531 MB / 331.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.939e-05/0.5263, allocations: 0 / 444.9 MB, free: 3.531 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.494e-06/0.5264, allocations: 3.938 kB / 444.9 MB, free: 3.527 MB / 331.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.254e-06/0.5264, allocations: 7.938 kB / 444.9 MB, free: 3.52 MB / 331.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004755/0.5269, allocations: 263.3 kB / 445.2 MB, free: 3.246 MB / 331.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.941e-05/0.5269, allocations: 85.02 kB / 445.3 MB, free: 3.145 MB / 331.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.711e-05/0.527, allocations: 4 kB / 445.3 MB, free: 3.141 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000244/0.5272, allocations: 12.03 kB / 445.3 MB, free: 3.129 MB / 331.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.403e-05/0.5273, allocations: 12.97 kB / 445.3 MB, free: 3.117 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.622e-05/0.5274, allocations: 8 kB / 445.3 MB, free: 3.109 MB / 331.1 MB Notification: Performance of sorting global known variables: time 0.0001101/0.5275, allocations: 103.3 kB / 445.4 MB, free: 3.008 MB / 331.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5275, allocations: 0 / 445.4 MB, free: 3.008 MB / 331.1 MB Notification: Performance of remove unused functions: time 0.0004057/0.5279, allocations: 43.84 kB / 445.4 MB, free: 2.965 MB / 331.1 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.0008406/0.5288, allocations: 0.7981 MB / 446.2 MB, free: 2.145 MB / 331.1 MB Notification: Performance of simCode: created initialization part: time 0.0003193/0.5291, allocations: 99.94 kB / 446.3 MB, free: 2.047 MB / 331.1 MB Notification: Performance of simCode: created event and clocks part: time 3.586e-06/0.5291, allocations: 0 / 446.3 MB, free: 2.047 MB / 331.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001334/0.5293, allocations: 51.94 kB / 446.4 MB, free: 1.996 MB / 331.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003776/0.5297, allocations: 25.3 kB / 446.4 MB, free: 1.977 MB / 331.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001507/0.5312, allocations: 465 kB / 446.9 MB, free: 1.484 MB / 331.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00041/0.5316, allocations: 0.7357 MB / 447.6 MB, free: 0.7227 MB / 331.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001435/0.5318, allocations: 47.42 kB / 447.6 MB, free: 0.6758 MB / 331.1 MB Notification: Performance of SimCode: time 1.222e-06/0.5318, allocations: 0 / 447.6 MB, free: 0.6758 MB / 331.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.544/3.075, allocations: 2.641 MB / 450.3 MB, free: 14.05 MB / 347.1 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