Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Electrical.Spice3.Examples.Oscillator.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Oscillator,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Spice3_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.192/2.192, allocations: 194.8 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003461/0.000346, allocations: 12 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09759/0.09798, allocations: 44.51 MB / 308.5 MB, free: 0.9023 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4112/0.5093, allocations: 86.09 MB / 394.6 MB, free: 14.45 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002511/0.5096, allocations: 85.81 kB / 394.7 MB, free: 14.45 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2085/0.7181, allocations: 54.62 MB / 449.3 MB, free: 5.629 MB / 330.7 MB Notification: Performance of FrontEnd: time 5.06e-06/0.7182, allocations: 3.984 kB / 449.3 MB, free: 5.625 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001086/0.7183, allocations: 24 kB / 449.4 MB, free: 5.602 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: 131 * Number of variables: 131 Notification: Performance of Generate backend data structure: time 0.00508/0.7234, allocations: 1.852 MB / 451.2 MB, free: 3.781 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.196e-05/0.7235, allocations: 12.03 kB / 451.2 MB, free: 3.77 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002589/0.7237, allocations: 87.27 kB / 451.3 MB, free: 3.703 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000422/0.7242, allocations: 193.8 kB / 451.5 MB, free: 3.512 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003064/0.7273, allocations: 1.152 MB / 452.6 MB, free: 2.508 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.719e-05/0.7273, allocations: 30.38 kB / 452.7 MB, free: 2.492 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001374/0.7275, allocations: 49.41 kB / 452.7 MB, free: 2.461 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001519/0.729, allocations: 0.5197 MB / 453.2 MB, free: 2.094 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.915e-05/0.7291, allocations: 0 / 453.2 MB, free: 2.094 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.265e-05/0.7292, allocations: 19.56 kB / 453.3 MB, free: 2.09 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.737e-05/0.7292, allocations: 11.98 kB / 453.3 MB, free: 2.078 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001577/0.7308, allocations: 491.9 kB / 453.8 MB, free: 1.742 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00509/0.7359, allocations: 2.129 MB / 455.9 MB, free: 136 kB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001704/0.7377, allocations: 0.7347 MB / 456.6 MB, free: 15.4 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01437/0.7521, allocations: 7.679 MB / 464.3 MB, free: 6.512 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009328/0.7531, allocations: 310.4 kB / 464.6 MB, free: 6.199 MB / 346.7 MB Notification: Performance of pre-optimization done (n=55): time 3.406e-06/0.7531, allocations: 0 / 464.6 MB, free: 6.199 MB / 346.7 MB Notification: Performance of matching and sorting (n=59): time 0.006343/0.7594, allocations: 2.178 MB / 466.8 MB, free: 3.922 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.88e-05/0.7595, allocations: 59.83 kB / 466.8 MB, free: 3.852 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002253/0.7618, allocations: 1.08 MB / 467.9 MB, free: 2.777 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001108/0.7619, allocations: 33.7 kB / 467.9 MB, free: 2.738 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007761/0.7627, allocations: 0.6353 MB / 468.6 MB, free: 2.102 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002972/0.763, allocations: 201.1 kB / 468.8 MB, free: 1.902 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.17e-05/0.7631, allocations: 16 kB / 468.8 MB, free: 1.887 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001719/0.7633, allocations: 334.8 kB / 469.1 MB, free: 1.551 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007532/0.764, allocations: 201.6 kB / 469.3 MB, free: 1.355 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000878/0.7649, allocations: 376.3 kB / 469.7 MB, free: 0.918 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008531/0.7658, allocations: 261.9 kB / 469.9 MB, free: 0.668 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.932e-06/0.7658, allocations: 3.938 kB / 469.9 MB, free: 0.6641 MB / 346.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.002486/0.7683, allocations: 0.7758 MB / 470.7 MB, free: 15.88 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.202e-05/0.7684, allocations: 11.94 kB / 470.7 MB, free: 15.86 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001441/0.7686, allocations: 55.98 kB / 470.8 MB, free: 15.81 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006998/0.7693, allocations: 163.1 kB / 470.9 MB, free: 15.65 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009048/0.7702, allocations: 123.8 kB / 471.1 MB, free: 15.53 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00454/0.7748, allocations: 2.333 MB / 473.4 MB, free: 13.07 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001039/0.7759, allocations: 36.03 kB / 473.4 MB, free: 13.03 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001235/0.776, allocations: 32 kB / 473.5 MB, free: 13 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 7 ($PRE.v.counter,v.counter,$whenCondition1,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,75.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008658/0.7769, allocations: 269.7 kB / 473.7 MB, free: 12.73 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004169/0.7773, allocations: 177.9 kB / 473.9 MB, free: 12.55 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003445/0.7808, allocations: 0.9215 MB / 474.8 MB, free: 11.61 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.736e-05/0.7809, allocations: 11.98 kB / 474.8 MB, free: 11.6 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.772e-06/0.7809, allocations: 0 / 474.8 MB, free: 11.6 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.432e-05/0.7809, allocations: 7.984 kB / 474.8 MB, free: 11.59 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001991/0.7829, allocations: 0.8593 MB / 475.7 MB, free: 10.68 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001557/0.7831, allocations: 51.98 kB / 475.8 MB, free: 10.63 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006261/0.7837, allocations: 75.89 kB / 475.8 MB, free: 10.56 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006761/0.7844, allocations: 142.1 kB / 476 MB, free: 10.42 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001116/0.7846, allocations: 31.98 kB / 476 MB, free: 10.39 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004395/0.789, allocations: 2.296 MB / 478.3 MB, free: 7.965 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.049e-06/0.789, allocations: 3.953 kB / 478.3 MB, free: 7.961 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003649/0.7927, allocations: 1.092 MB / 479.4 MB, free: 6.844 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007051/0.7934, allocations: 251 kB / 479.6 MB, free: 6.578 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002966/0.7938, allocations: 8 kB / 479.6 MB, free: 6.57 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007259/0.7945, allocations: 23.98 kB / 479.7 MB, free: 6.547 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002111/0.7947, allocations: 44.38 kB / 479.7 MB, free: 6.504 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.168e-05/0.7948, allocations: 31.92 kB / 479.7 MB, free: 6.473 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001892/0.7967, allocations: 0.8421 MB / 480.6 MB, free: 5.641 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.7968, allocations: 7.938 kB / 480.6 MB, free: 5.633 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001881/0.7987, allocations: 423.6 kB / 481 MB, free: 5.219 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (T1.vbe,T1.vbx,T2.vbe,T2.vbx) * Number of discrete variables: 4 ($whenCondition1,v.T0,v.counter,v.counter2) * Number of discrete states: 2 (v.counter,v.counter2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(6,50.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005129/0.8039, allocations: 2.075 MB / 483.1 MB, free: 3.105 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002741/0.8066, allocations: 0.8602 MB / 483.9 MB, free: 2.219 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.539e-06/0.8067, allocations: 0 / 483.9 MB, free: 2.219 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001779/0.8085, allocations: 0.6135 MB / 484.6 MB, free: 1.582 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001043/0.8096, allocations: 158.8 kB / 484.7 MB, free: 1.426 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0241/0.8337, allocations: 11.5 MB / 496.2 MB, free: 5.262 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001053/0.8348, allocations: 1.2 MB / 497.4 MB, free: 4.027 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001073/0.8359, allocations: 0.5618 MB / 498 MB, free: 3.465 MB / 378.7 MB Notification: Performance of SimCode: time 1.052e-06/0.8359, allocations: 0 / 498 MB, free: 3.465 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.352/4.188, allocations: 28.78 MB / 0.5144 GB, free: 6.668 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Spice3.Examples.Oscillator_res.mat does not exist to compare? outputFormat=mat