Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ChuaCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ChuaCircuit,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_ChuaCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ChuaCircuit,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001043/0.001043, allocations: 190.7 kB / 17.38 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.262/1.262, allocations: 226.5 MB / 244.7 MB, free: 6.465 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007665/0.0007665, allocations: 96.77 kB / 296.7 MB, free: 6.695 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002409/0.000241, allocations: 8 kB / 356.8 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.186/0.1863, allocations: 51.29 MB / 408.1 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ChuaCircuit): time 0.001557/0.1879, allocations: 1.79 MB / 409.9 MB, free: 25.89 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005847/0.1885, allocations: 0.5277 MB / 410.4 MB, free: 25.36 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.985e-05/0.1886, allocations: 8.688 kB / 410.5 MB, free: 25.35 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 8.869e-05/0.1887, allocations: 19.84 kB / 410.5 MB, free: 25.33 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.859e-05/0.1888, allocations: 54.42 kB / 410.5 MB, free: 25.28 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001281/0.1889, allocations: 39.94 kB / 410.6 MB, free: 25.24 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001567/0.1891, allocations: 211 kB / 410.8 MB, free: 25.04 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001344/0.1892, allocations: 66.47 kB / 410.8 MB, free: 24.97 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.698e-05/0.1893, allocations: 77.39 kB / 410.9 MB, free: 24.9 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.701e-05/0.1894, allocations: 87.61 kB / 411 MB, free: 24.81 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.21e-05/0.1894, allocations: 8 kB / 411 MB, free: 24.8 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.714e-05/0.1894, allocations: 12 kB / 411 MB, free: 24.79 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.34e-05/0.1895, allocations: 28.81 kB / 411 MB, free: 24.77 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.643e-05/0.1895, allocations: 113.3 kB / 411.2 MB, free: 24.65 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001135/0.1897, allocations: 168.8 kB / 411.3 MB, free: 24.48 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.1897, allocations: 3.344 kB / 411.3 MB, free: 24.48 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1897, allocations: 3.938 kB / 411.3 MB, free: 24.48 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.258e-06/0.1897, allocations: 0 / 411.3 MB, free: 24.48 MB / 298.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.0005083/0.1902, allocations: 474.9 kB / 411.8 MB, free: 23.97 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.235e-05/0.1902, allocations: 8.031 kB / 411.8 MB, free: 23.96 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.877e-05/0.1903, allocations: 54.73 kB / 411.9 MB, free: 23.9 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.773e-05/0.1903, allocations: 20.75 kB / 411.9 MB, free: 23.88 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001524/0.1905, allocations: 220 kB / 412.1 MB, free: 23.62 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.787e-05/0.1905, allocations: 20.36 kB / 412.1 MB, free: 23.61 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.805e-05/0.1905, allocations: 20.28 kB / 412.1 MB, free: 23.59 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002999/0.1909, allocations: 185.7 kB / 412.3 MB, free: 23.4 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.957e-06/0.1909, allocations: 0 / 412.3 MB, free: 23.4 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.893e-05/0.1909, allocations: 4 kB / 412.3 MB, free: 23.39 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.082e-06/0.1909, allocations: 4 kB / 412.3 MB, free: 23.39 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002718/0.1912, allocations: 155.9 kB / 412.5 MB, free: 23.24 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008904/0.1921, allocations: 0.7585 MB / 413.2 MB, free: 22.41 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003277/0.1924, allocations: 174.5 kB / 413.4 MB, free: 22.23 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000147/0.1926, allocations: 100.8 kB / 413.5 MB, free: 22.13 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.193e-05/0.1926, allocations: 0 / 413.5 MB, free: 22.13 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.564e-05/0.1926, allocations: 34.56 kB / 413.5 MB, free: 22.09 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 9.12e-07/0.1926, allocations: 0 / 413.5 MB, free: 22.09 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.0003883/0.193, allocations: 205.6 kB / 413.7 MB, free: 21.88 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.229e-05/0.1931, allocations: 55.34 kB / 413.8 MB, free: 21.82 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.712e-05/0.1931, allocations: 157.1 kB / 413.9 MB, free: 21.66 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.202e-05/0.1932, allocations: 29.7 kB / 414 MB, free: 21.62 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.016e-05/0.1932, allocations: 132.1 kB / 414.1 MB, free: 21.49 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.488e-05/0.1932, allocations: 47.34 kB / 414.1 MB, free: 21.44 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.574e-06/0.1933, allocations: 4 kB / 414.1 MB, free: 21.44 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.01e-05/0.1933, allocations: 322.8 kB / 414.5 MB, free: 21.11 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001084/0.1934, allocations: 51.98 kB / 414.5 MB, free: 21.06 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001117/0.1935, allocations: 80.08 kB / 414.6 MB, free: 20.98 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002059/0.1937, allocations: 133.6 kB / 414.7 MB, free: 20.84 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.1938, allocations: 0 / 414.7 MB, free: 20.84 MB / 298.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.000274/0.194, allocations: 180.5 kB / 414.9 MB, free: 20.66 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.08e-05/0.194, allocations: 4 kB / 414.9 MB, free: 20.66 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.1941, allocations: 3.938 kB / 414.9 MB, free: 20.66 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.187e-05/0.1941, allocations: 3.984 kB / 414.9 MB, free: 20.65 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001897/0.1943, allocations: 47.92 kB / 415 MB, free: 20.61 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.25e-06/0.1943, allocations: 0 / 415 MB, free: 20.61 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.135e-05/0.1944, allocations: 19.83 kB / 415 MB, free: 20.59 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.708e-06/0.1944, allocations: 4 kB / 415 MB, free: 20.58 MB / 298.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 6.901e-05/0.1945, allocations: 141.7 kB / 415.1 MB, free: 20.43 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.201e-05/0.1945, allocations: 19.75 kB / 415.1 MB, free: 20.41 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.068e-05/0.1945, allocations: 16.78 kB / 415.2 MB, free: 20.39 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-06/0.1946, allocations: 4 kB / 415.2 MB, free: 20.39 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.1946, allocations: 3.984 kB / 415.2 MB, free: 20.39 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.1946, allocations: 0 / 415.2 MB, free: 20.39 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001899/0.1948, allocations: 265.5 kB / 415.4 MB, free: 20.08 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.1948, allocations: 0 / 415.4 MB, free: 20.08 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001897/0.195, allocations: 39.98 kB / 415.5 MB, free: 20.04 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.195, allocations: 3.984 kB / 415.5 MB, free: 20.04 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.042e-05/0.195, allocations: 7.938 kB / 415.5 MB, free: 20.03 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.195, allocations: 0 / 415.5 MB, free: 20.03 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/0.195, allocations: 7.984 kB / 415.5 MB, free: 20.02 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003667/0.1954, allocations: 312.1 kB / 415.8 MB, free: 19.7 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.63e-05/0.1954, allocations: 89.02 kB / 415.9 MB, free: 19.59 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.204e-05/0.1954, allocations: 7.938 kB / 415.9 MB, free: 19.59 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001365/0.1956, allocations: 16.03 kB / 415.9 MB, free: 19.57 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.158e-05/0.1956, allocations: 7.984 kB / 415.9 MB, free: 19.56 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.227e-06/0.1957, allocations: 12 kB / 415.9 MB, free: 19.55 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.125e-05/0.1957, allocations: 115.2 kB / 416 MB, free: 19.44 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1957, allocations: 0 / 416 MB, free: 19.44 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002304/0.196, allocations: 47.84 kB / 416.1 MB, free: 19.39 MB / 298.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.0004846/0.1964, allocations: 0.845 MB / 416.9 MB, free: 18.52 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002499/0.1967, allocations: 131.9 kB / 417 MB, free: 18.39 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.1967, allocations: 0 / 417 MB, free: 18.39 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001064/0.1968, allocations: 63.22 kB / 417.1 MB, free: 18.33 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002959/0.1971, allocations: 27.97 kB / 417.1 MB, free: 18.3 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001392/0.1985, allocations: 1.209 MB / 418.3 MB, free: 17.04 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001136/0.1987, allocations: 0.7204 MB / 419.1 MB, free: 16.29 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.728e-05/0.1987, allocations: 47.42 kB / 419.1 MB, free: 16.24 MB / 298.7 MB Notification: Performance of SimCode: time 2.4e-07/0.1987, allocations: 0 / 419.1 MB, free: 16.24 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.476/2.675, allocations: 2.469 MB / 421.6 MB, free: 13.77 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ChuaCircuit.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ChuaCircuit.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ChuaCircuit.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ChuaCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ChuaCircuit_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_ChuaCircuit_fmu --startTime=0 --stopTime=50000 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_ChuaCircuit.fmu > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ChuaCircuit.pipe 2>&1)