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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008599/0.0008643, allocations: 101.4 kB / 16.94 MB, free: 6.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008932/0.0008934, allocations: 184.8 kB / 17.83 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.471/1.471, allocations: 205.4 MB / 224 MB, free: 13.17 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004242/0.0004243, allocations: 8.219 kB / 280.8 MB, free: 3.66 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09496/0.09539, allocations: 47.58 MB / 328.4 MB, free: 4.012 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ChuaCircuit): time 0.002147/0.09759, allocations: 1.681 MB / 330.1 MB, free: 2.32 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008503/0.09846, allocations: 0.5546 MB / 330.7 MB, free: 1.758 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.303e-05/0.09857, allocations: 4 kB / 330.7 MB, free: 1.754 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 5.563e-05/0.09863, allocations: 19.84 kB / 330.7 MB, free: 1.734 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001428/0.09878, allocations: 67.78 kB / 330.7 MB, free: 1.668 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001893/0.09898, allocations: 35.95 kB / 330.8 MB, free: 1.633 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002239/0.09921, allocations: 155.7 kB / 330.9 MB, free: 1.48 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001801/0.0994, allocations: 62.08 kB / 331 MB, free: 1.418 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.715e-05/0.0995, allocations: 67.78 kB / 331.1 MB, free: 1.352 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001344/0.09965, allocations: 91.66 kB / 331.1 MB, free: 1.262 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.803e-05/0.09968, allocations: 15.94 kB / 331.2 MB, free: 1.246 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.665e-05/0.09972, allocations: 8 kB / 331.2 MB, free: 1.238 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 3.086e-05/0.09976, allocations: 35.84 kB / 331.2 MB, free: 1.203 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 5.15e-05/0.09981, allocations: 61.58 kB / 331.3 MB, free: 1.137 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001611/0.09998, allocations: 167.8 kB / 331.4 MB, free: 0.9727 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.09999, allocations: 0 / 331.4 MB, free: 0.9727 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.1, allocations: 0 / 331.4 MB, free: 0.9727 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.079e-06/0.1, allocations: 0 / 331.4 MB, free: 0.9727 MB / 270.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.0007346/0.1007, allocations: 478.6 kB / 331.9 MB, free: 468 kB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.421e-05/0.1008, allocations: 8.031 kB / 331.9 MB, free: 460 kB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.941e-05/0.1009, allocations: 54.55 kB / 332 MB, free: 396 kB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.094e-05/0.1009, allocations: 19.81 kB / 332 MB, free: 376 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002538/0.1012, allocations: 214.7 kB / 332.2 MB, free: 120 kB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.519e-05/0.1012, allocations: 27.94 kB / 332.2 MB, free: 92 kB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.671e-05/0.1013, allocations: 16 kB / 332.2 MB, free: 76 kB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003737/0.1017, allocations: 185.5 kB / 332.4 MB, free: 15.89 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.1017, allocations: 0 / 332.4 MB, free: 15.89 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.027e-05/0.1017, allocations: 4 kB / 332.4 MB, free: 15.88 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.536e-06/0.1017, allocations: 4 kB / 332.4 MB, free: 15.88 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003118/0.102, allocations: 151.9 kB / 332.6 MB, free: 15.73 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00124/0.1033, allocations: 0.7546 MB / 333.3 MB, free: 14.91 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004022/0.1037, allocations: 174.5 kB / 333.5 MB, free: 14.73 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.189e-05/0.1037, allocations: 0 / 333.5 MB, free: 14.73 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.694e-05/0.1038, allocations: 34.56 kB / 333.5 MB, free: 14.68 MB / 286.1 MB Notification: Performance of pre-optimization done (n=13): time 9.72e-07/0.1038, allocations: 0 / 333.5 MB, free: 14.68 MB / 286.1 MB Notification: Performance of matching and sorting (n=13): time 0.0004617/0.1042, allocations: 197.8 kB / 333.7 MB, free: 14.48 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.531e-05/0.1043, allocations: 55.34 kB / 333.8 MB, free: 14.42 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001354/0.1044, allocations: 158.2 kB / 333.9 MB, free: 14.25 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.269e-05/0.1045, allocations: 29.7 kB / 334 MB, free: 14.22 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.079e-05/0.1045, allocations: 128.2 kB / 334.1 MB, free: 14.09 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.525e-05/0.1046, allocations: 51.34 kB / 334.1 MB, free: 14.04 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.072e-05/0.1046, allocations: 11.94 kB / 334.1 MB, free: 14.03 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001085/0.1047, allocations: 322.8 kB / 334.5 MB, free: 13.7 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001159/0.1048, allocations: 51.97 kB / 334.5 MB, free: 13.65 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001269/0.105, allocations: 77.64 kB / 334.6 MB, free: 13.57 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001269/0.1051, allocations: 59.98 kB / 334.6 MB, free: 13.51 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.1051, allocations: 0 / 334.6 MB, free: 13.51 MB / 286.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003204/0.1055, allocations: 188.4 kB / 334.8 MB, free: 13.32 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.112e-05/0.1055, allocations: 4 kB / 334.8 MB, free: 13.32 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.836e-06/0.1055, allocations: 4.031 kB / 334.8 MB, free: 13.32 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.6e-05/0.1055, allocations: 7.953 kB / 334.8 MB, free: 13.31 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002153/0.1057, allocations: 39.97 kB / 334.9 MB, free: 13.27 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.157e-06/0.1058, allocations: 7.938 kB / 334.9 MB, free: 13.26 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000103/0.1059, allocations: 23.83 kB / 334.9 MB, free: 13.24 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.278e-06/0.1059, allocations: 4 kB / 334.9 MB, free: 13.23 MB / 286.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 () * 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.0001077/0.106, allocations: 125.8 kB / 335 MB, free: 13.1 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.307e-05/0.106, allocations: 15.91 kB / 335.1 MB, free: 13.09 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.698e-05/0.1061, allocations: 12.84 kB / 335.1 MB, free: 13.07 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.649e-06/0.1061, allocations: 11.95 kB / 335.1 MB, free: 13.06 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.1061, allocations: 0 / 335.1 MB, free: 13.06 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.1061, allocations: 3.984 kB / 335.1 MB, free: 13.06 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002595/0.1064, allocations: 265.5 kB / 335.3 MB, free: 12.75 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.1064, allocations: 0 / 335.3 MB, free: 12.75 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001983/0.1066, allocations: 35.98 kB / 335.4 MB, free: 12.71 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.053e-06/0.1066, allocations: 0 / 335.4 MB, free: 12.71 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.406e-05/0.1066, allocations: 12 kB / 335.4 MB, free: 12.7 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.1066, allocations: 0 / 335.4 MB, free: 12.7 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.921e-06/0.1066, allocations: 7.938 kB / 335.4 MB, free: 12.7 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004617/0.1071, allocations: 311.2 kB / 335.7 MB, free: 12.38 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.799e-05/0.1072, allocations: 88.95 kB / 335.8 MB, free: 12.27 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.533e-05/0.1072, allocations: 4 kB / 335.8 MB, free: 12.27 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001382/0.1073, allocations: 16.03 kB / 335.8 MB, free: 12.25 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.46e-05/0.1074, allocations: 7.984 kB / 335.8 MB, free: 12.24 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.728e-06/0.1074, allocations: 7.953 kB / 335.8 MB, free: 12.23 MB / 286.1 MB Notification: Performance of sorting global known variables: time 8.58e-05/0.1075, allocations: 120.6 kB / 335.9 MB, free: 12.12 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1075, allocations: 0 / 335.9 MB, free: 12.12 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002626/0.1078, allocations: 47.84 kB / 336 MB, free: 12.07 MB / 286.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 () * 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.0007363/0.1085, allocations: 0.8414 MB / 336.8 MB, free: 11.2 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003077/0.1088, allocations: 136 kB / 337 MB, free: 11.07 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/0.1089, allocations: 4.062 kB / 337 MB, free: 11.07 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001259/0.109, allocations: 71.91 kB / 337 MB, free: 11 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002793/0.1093, allocations: 19.98 kB / 337.1 MB, free: 10.98 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001804/0.1111, allocations: 1.343 MB / 338.4 MB, free: 9.578 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002633/0.1114, allocations: 0.7282 MB / 339.1 MB, free: 8.824 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 6.517e-05/0.1114, allocations: 13.42 kB / 339.1 MB, free: 8.812 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.279e-05/0.1115, allocations: 51.42 kB / 339.2 MB, free: 8.762 MB / 286.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1115, allocations: 0 / 339.2 MB, free: 8.762 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01382/0.1253, allocations: 2.93 MB / 342.1 MB, free: 5.84 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001887/0.1256, allocations: 184.3 kB / 342.3 MB, free: 5.594 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.688/1.814, allocations: 4 kB / 342.3 MB, free: 5.59 MB / 286.1 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) Environment - environmentSimulation: 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