Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Electrical.Analog.Examples.ChuaCircuit.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ChuaCircuit,fileNamePrefix="Modelica_3_1_cpp_Modelica_Electrical_Analog_Examples_ChuaCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.056/1.056, allocations: 111.2 MB / 119.1 MB, free: 11.19 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.584e-05/2.622e-05, allocations: 0 / 148.2 MB, free: 6.121 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05587/0.05595, allocations: 25.17 MB / 173.4 MB, free: 12.91 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2081/0.2641, allocations: 33.86 MB / 207.2 MB, free: 4.996 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002381/0.2644, allocations: 61.66 kB / 207.3 MB, free: 4.996 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01279/0.2772, allocations: 2.967 MB / 210.3 MB, free: 4.496 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.2773, allocations: 1.5 kB / 210.3 MB, free: 4.496 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.85e-05/0.2773, allocations: 2.531 kB / 210.3 MB, free: 4.496 MB / 170.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.0008299/0.2782, allocations: 456 kB / 210.7 MB, free: 4.113 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.419e-05/0.2782, allocations: 8.5 kB / 210.7 MB, free: 4.113 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.307e-05/0.2783, allocations: 20.73 kB / 210.8 MB, free: 4.105 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002895/0.2786, allocations: 213 kB / 211 MB, free: 3.895 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.345e-05/0.2787, allocations: 5 kB / 211 MB, free: 3.895 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.701e-05/0.2787, allocations: 11.06 kB / 211 MB, free: 3.895 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003596/0.2791, allocations: 111.5 kB / 211.1 MB, free: 3.895 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000376/0.2795, allocations: 135.6 kB / 211.2 MB, free: 3.855 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.63e-05/0.2795, allocations: 11.89 kB / 211.2 MB, free: 3.844 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.004e-05/0.2796, allocations: 1.188 kB / 211.2 MB, free: 3.844 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.849e-06/0.2796, allocations: 3.719 kB / 211.2 MB, free: 3.844 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001786/0.2814, allocations: 0.7216 MB / 212 MB, free: 3.461 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003669/0.2818, allocations: 127.6 kB / 212.1 MB, free: 3.43 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001767/0.282, allocations: 78.58 kB / 212.2 MB, free: 3.422 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.16e-05/0.282, allocations: 6.188 kB / 212.2 MB, free: 3.418 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.167e-05/0.2821, allocations: 35.16 kB / 212.2 MB, free: 3.379 MB / 170.7 MB Notification: Performance of pre-optimization done (n=13): time 3.176e-06/0.2821, allocations: 0 / 212.2 MB, free: 3.379 MB / 170.7 MB Notification: Performance of matching and sorting (n=13): time 0.0003632/0.2825, allocations: 114.2 kB / 212.3 MB, free: 3.336 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.005e-05/0.2825, allocations: 53.53 kB / 212.4 MB, free: 3.273 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001408/0.2827, allocations: 129.8 kB / 212.5 MB, free: 3.18 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 2.229e-05/0.2827, allocations: 27.05 kB / 212.5 MB, free: 3.148 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.705e-05/0.2828, allocations: 206.7 kB / 212.7 MB, free: 2.969 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.206e-05/0.2828, allocations: 48.36 kB / 212.8 MB, free: 2.938 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.094e-05/0.2829, allocations: 0 / 212.8 MB, free: 2.938 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 6.052e-05/0.283, allocations: 317.2 kB / 213.1 MB, free: 2.625 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.265e-05/0.2831, allocations: 32.59 kB / 213.1 MB, free: 2.625 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001161/0.2832, allocations: 61.28 kB / 213.2 MB, free: 2.605 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001268/0.2833, allocations: 37.78 kB / 213.2 MB, free: 2.605 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.2833, allocations: 0 / 213.2 MB, free: 2.605 MB / 170.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003276/0.2837, allocations: 144.3 kB / 213.3 MB, free: 2.559 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.148e-05/0.2837, allocations: 5.062 kB / 213.3 MB, free: 2.559 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.295e-06/0.2837, allocations: 1.25 kB / 213.3 MB, free: 2.559 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.496e-05/0.2838, allocations: 1.281 kB / 213.3 MB, free: 2.559 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004107/0.2842, allocations: 43.92 kB / 213.4 MB, free: 2.559 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.434e-06/0.2842, allocations: 1.25 kB / 213.4 MB, free: 2.559 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001961/0.2844, allocations: 18.06 kB / 213.4 MB, free: 2.551 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.865e-05/0.2844, allocations: 4.688 kB / 213.4 MB, free: 2.551 MB / 170.7 MB Warning: Assuming fixed start value for the following 3 variables: C2.v:VARIABLE(unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" type: Real C1.v:VARIABLE(start = 4.0 unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" type: Real L.i:VARIABLE(unit = "A" ) "Current flowing from pin p to pin n" type: Real 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.0001668/0.2846, allocations: 118.6 kB / 213.5 MB, free: 2.434 MB / 170.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002793/0.2849, allocations: 112.3 kB / 213.6 MB, free: 2.395 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.507e-05/0.285, allocations: 12.86 kB / 213.7 MB, free: 2.391 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.486e-05/0.285, allocations: 17.19 kB / 213.7 MB, free: 2.379 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.16e-06/0.285, allocations: 1.344 kB / 213.7 MB, free: 2.379 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.2851, allocations: 1.375 kB / 213.7 MB, free: 2.379 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-06/0.2851, allocations: 7.328 kB / 213.7 MB, free: 2.375 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000323/0.2854, allocations: 235 kB / 213.9 MB, free: 2.203 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.856e-06/0.2854, allocations: 0 / 213.9 MB, free: 2.203 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004123/0.2858, allocations: 41.41 kB / 214 MB, free: 2.199 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.004e-06/0.2859, allocations: 0 / 214 MB, free: 2.199 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.751e-05/0.2859, allocations: 1.281 kB / 214 MB, free: 2.199 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.659e-06/0.2859, allocations: 1.312 kB / 214 MB, free: 2.199 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.2859, allocations: 0 / 214 MB, free: 2.199 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004186/0.2863, allocations: 262.8 kB / 214.2 MB, free: 2.055 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.551e-05/0.2864, allocations: 96.05 kB / 214.3 MB, free: 1.949 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.343e-05/0.2865, allocations: 0 / 214.3 MB, free: 1.949 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002514/0.2867, allocations: 14.38 kB / 214.3 MB, free: 1.949 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.099e-05/0.2868, allocations: 9.859 kB / 214.3 MB, free: 1.949 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.723e-05/0.2868, allocations: 2.938 kB / 214.3 MB, free: 1.949 MB / 170.7 MB Notification: Performance of sorting global known variables: time 0.0001074/0.2869, allocations: 109.6 kB / 214.4 MB, free: 1.871 MB / 170.7 MB Notification: Performance of sort global known variables: time 4.8e-07/0.2869, allocations: 4 kB / 214.4 MB, free: 1.867 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0004341/0.2874, allocations: 43.47 kB / 214.5 MB, free: 1.859 MB / 170.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.0006149/0.288, allocations: 0.7885 MB / 215.3 MB, free: 1.195 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.0002988/0.2883, allocations: 99.47 kB / 215.4 MB, free: 1.188 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 4.569e-06/0.2884, allocations: 4.062 kB / 215.4 MB, free: 1.184 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001115/0.2885, allocations: 52 kB / 215.4 MB, free: 1.18 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004834/0.289, allocations: 22.88 kB / 215.4 MB, free: 1.18 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001317/0.2903, allocations: 458.2 kB / 215.9 MB, free: 0.8555 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002416/0.2906, allocations: 0.7328 MB / 216.6 MB, free: 16.15 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001267/0.2907, allocations: 51.77 kB / 216.7 MB, free: 16.14 MB / 186.7 MB Notification: Performance of SimCode: time 9.72e-07/0.2908, allocations: 0 / 216.7 MB, free: 16.14 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.478/2.769, allocations: 2.671 MB / 219.3 MB, free: 15.66 MB / 186.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.1_cpp_Modelica.Electrical.Analog.Examples.ChuaCircuit_res.mat does not exist to compare? outputFormat=mat