Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Spice3.Examples.Oscillator.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Oscillator,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Spice3_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.704/1.704, allocations: 171.2 MB / 186.7 MB, free: 1.035 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003491/0.0003491, allocations: 8 kB / 233.3 MB, free: 2.914 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08059/0.08098, allocations: 38.77 MB / 272.1 MB, free: 12.07 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3558/0.4368, allocations: 81.96 MB / 354.1 MB, free: 7.691 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002713/0.4371, allocations: 76.41 kB / 354.1 MB, free: 7.652 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1789/0.6161, allocations: 55.22 MB / 409.4 MB, free: 6.594 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.665e-06/0.6161, allocations: 3.938 kB / 409.4 MB, free: 6.59 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.187e-05/0.6162, allocations: 24 kB / 409.4 MB, free: 6.566 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.004568/0.6208, allocations: 1.851 MB / 411.2 MB, free: 4.66 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.095e-05/0.6209, allocations: 8.031 kB / 411.2 MB, free: 4.652 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002003/0.6211, allocations: 90.52 kB / 411.3 MB, free: 4.555 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003182/0.6214, allocations: 201.6 kB / 411.5 MB, free: 4.355 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002718/0.6241, allocations: 1.139 MB / 412.7 MB, free: 3.168 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.396e-05/0.6242, allocations: 37 kB / 412.7 MB, free: 3.133 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001373/0.6243, allocations: 47.91 kB / 412.7 MB, free: 3.086 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001485/0.6258, allocations: 0.5196 MB / 413.3 MB, free: 2.562 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.866e-05/0.6259, allocations: 0 / 413.3 MB, free: 2.562 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.638e-05/0.626, allocations: 20 kB / 413.3 MB, free: 2.543 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.335e-05/0.626, allocations: 27.88 kB / 413.3 MB, free: 2.516 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001565/0.6276, allocations: 496.1 kB / 413.8 MB, free: 2.023 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00499/0.6326, allocations: 2.133 MB / 415.9 MB, free: 15.81 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001611/0.6342, allocations: 0.7169 MB / 416.6 MB, free: 15.04 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01379/0.6481, allocations: 7.691 MB / 424.3 MB, free: 6.141 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009157/0.649, allocations: 302.5 kB / 424.6 MB, free: 5.832 MB / 346.7 MB Notification: Performance of pre-optimization done (n=55): time 3.246e-06/0.649, allocations: 4 kB / 424.6 MB, free: 5.828 MB / 346.7 MB Notification: Performance of matching and sorting (n=59): time 0.005942/0.655, allocations: 2.166 MB / 426.8 MB, free: 3.566 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.755e-05/0.6551, allocations: 55.84 kB / 426.9 MB, free: 3.5 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002047/0.6571, allocations: 1.092 MB / 428 MB, free: 2.414 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.908e-05/0.6572, allocations: 41.64 kB / 428 MB, free: 2.367 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007203/0.6579, allocations: 0.6353 MB / 428.6 MB, free: 1.73 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002335/0.6582, allocations: 197.2 kB / 428.8 MB, free: 1.535 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.824e-05/0.6582, allocations: 8 kB / 428.8 MB, free: 1.527 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001418/0.6584, allocations: 338.8 kB / 429.2 MB, free: 1.188 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007097/0.6591, allocations: 205.6 kB / 429.4 MB, free: 0.9844 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008548/0.66, allocations: 368.4 kB / 429.7 MB, free: 0.5625 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007981/0.6608, allocations: 261.8 kB / 430 MB, free: 316 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.429e-06/0.6608, allocations: 4 kB / 430 MB, free: 312 kB / 346.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.2247/0.8855, allocations: 0.7697 MB / 430.7 MB, free: 85.75 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.316e-05/0.8856, allocations: 6.781 kB / 430.8 MB, free: 85.75 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000142/0.8858, allocations: 58.53 kB / 430.8 MB, free: 85.75 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006528/0.8864, allocations: 158.8 kB / 431 MB, free: 85.74 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008195/0.8873, allocations: 117.8 kB / 431.1 MB, free: 85.74 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003871/0.8911, allocations: 2.335 MB / 433.4 MB, free: 84.41 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001034/0.8922, allocations: 32.58 kB / 433.4 MB, free: 84.41 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.21e-05/0.8923, allocations: 33.61 kB / 433.5 MB, free: 84.41 MB / 346.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.0007227/0.8931, allocations: 272.1 kB / 433.7 MB, free: 84.3 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002605/0.8933, allocations: 181.1 kB / 433.9 MB, free: 84.3 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003211/0.8965, allocations: 0.9249 MB / 434.8 MB, free: 84.22 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.283e-05/0.8966, allocations: 5.375 kB / 434.9 MB, free: 84.22 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/0.8966, allocations: 2.594 kB / 434.9 MB, free: 84.22 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.134e-05/0.8966, allocations: 3.703 kB / 434.9 MB, free: 84.22 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001679/0.8983, allocations: 0.8662 MB / 435.7 MB, free: 84.02 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001233/0.8985, allocations: 54.31 kB / 435.8 MB, free: 84.02 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005813/0.8991, allocations: 72.55 kB / 435.9 MB, free: 84.02 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006495/0.8997, allocations: 147.8 kB / 436 MB, free: 84.01 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.963e-05/0.8998, allocations: 20.91 kB / 436 MB, free: 84.01 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003663/0.9035, allocations: 2.306 MB / 438.3 MB, free: 82.64 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/0.9035, allocations: 0.7031 kB / 438.3 MB, free: 82.64 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003282/0.9068, allocations: 1.091 MB / 439.4 MB, free: 82.44 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006415/0.9075, allocations: 254 kB / 439.7 MB, free: 82.26 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002387/0.9078, allocations: 14.28 kB / 439.7 MB, free: 82.26 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000691/0.9085, allocations: 26.86 kB / 439.7 MB, free: 82.26 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001977/0.9087, allocations: 50.05 kB / 439.8 MB, free: 82.26 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.792e-05/0.9087, allocations: 22.16 kB / 439.8 MB, free: 82.26 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001747/0.9105, allocations: 0.8433 MB / 440.6 MB, free: 82.15 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.8e-07/0.9105, allocations: 3.5 kB / 440.6 MB, free: 82.15 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001759/0.9123, allocations: 425.8 kB / 441 MB, free: 82.15 MB / 346.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.00448/0.9168, allocations: 2.076 MB / 443.1 MB, free: 81.42 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002533/0.9194, allocations: 0.8551 MB / 444 MB, free: 81.22 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.017e-06/0.9194, allocations: 0 / 444 MB, free: 81.22 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001662/0.9211, allocations: 0.616 MB / 444.6 MB, free: 81.02 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001033/0.9221, allocations: 158.1 kB / 444.7 MB, free: 81 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01962/0.9418, allocations: 11.5 MB / 456.2 MB, free: 74.22 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006693/0.9425, allocations: 1.201 MB / 457.4 MB, free: 73.48 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000867/0.9434, allocations: 0.559 MB / 458 MB, free: 73.48 MB / 346.7 MB Notification: Performance of SimCode: time 2.405e-06/0.9434, allocations: 0 / 458 MB, free: 73.48 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.016/3.959, allocations: 28.77 MB / 486.8 MB, free: 65.36 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Spice3.Examples.Oscillator_res.mat does not exist to compare? outputFormat=mat