Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_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_Modelica_Electrical_Spice3_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.043/2.043, allocations: 194.9 MB / 211.1 MB, free: 7.59 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004261/0.0004263, allocations: 8 kB / 264.1 MB, free: 2.516 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3531/0.3536, allocations: 44.5 MB / 308.6 MB, free: 12.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1586/0.5122, allocations: 86.09 MB / 394.7 MB, free: 6.441 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002884/0.5126, allocations: 71.97 kB / 394.7 MB, free: 6.371 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4881/1.001, allocations: 54.64 MB / 449.4 MB, free: 74.48 MB / 346.7 MB Notification: Performance of FrontEnd: time 4.709e-06/1.001, allocations: 0 / 449.4 MB, free: 74.48 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.84e-05/1.001, allocations: 23.94 kB / 449.4 MB, free: 74.46 MB / 346.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.004174/1.005, allocations: 1.855 MB / 451.2 MB, free: 72.54 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.264e-05/1.005, allocations: 12.03 kB / 451.3 MB, free: 72.53 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002238/1.005, allocations: 86.52 kB / 451.3 MB, free: 72.44 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003111/1.006, allocations: 193.8 kB / 451.5 MB, free: 72.25 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002666/1.008, allocations: 1.139 MB / 452.7 MB, free: 71.06 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.578e-05/1.008, allocations: 44.92 kB / 452.7 MB, free: 71.02 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001329/1.009, allocations: 44.34 kB / 452.8 MB, free: 70.98 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001435/1.01, allocations: 0.5197 MB / 453.3 MB, free: 70.45 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.066e-05/1.01, allocations: 3.938 kB / 453.3 MB, free: 70.45 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.902e-05/1.01, allocations: 16 kB / 453.3 MB, free: 70.43 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.283e-05/1.01, allocations: 16 kB / 453.3 MB, free: 70.42 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001496/1.012, allocations: 496 kB / 453.8 MB, free: 69.93 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005839/1.018, allocations: 2.126 MB / 455.9 MB, free: 67.72 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001531/1.019, allocations: 0.7286 MB / 456.6 MB, free: 66.93 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01189/1.031, allocations: 7.684 MB / 464.3 MB, free: 58.04 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008246/1.032, allocations: 298.5 kB / 464.6 MB, free: 57.73 MB / 346.7 MB Notification: Performance of pre-optimization done (n=55): time 3.807e-06/1.032, allocations: 0 / 464.6 MB, free: 57.73 MB / 346.7 MB Notification: Performance of matching and sorting (n=59): time 0.005773/1.038, allocations: 2.178 MB / 466.8 MB, free: 55.46 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.879e-05/1.038, allocations: 59.84 kB / 466.9 MB, free: 55.39 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001991/1.04, allocations: 1.08 MB / 467.9 MB, free: 54.32 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001109/1.04, allocations: 37.62 kB / 468 MB, free: 54.27 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006808/1.041, allocations: 0.7149 MB / 468.7 MB, free: 53.55 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002101/1.041, allocations: 209.1 kB / 468.9 MB, free: 53.35 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.712e-05/1.041, allocations: 16 kB / 468.9 MB, free: 53.33 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.951e-05/1.041, allocations: 330 kB / 469.2 MB, free: 53 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007241/1.042, allocations: 201.6 kB / 469.4 MB, free: 52.81 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007647/1.043, allocations: 376.3 kB / 469.8 MB, free: 52.38 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007786/1.043, allocations: 257.9 kB / 470 MB, free: 52.12 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.049e-06/1.043, allocations: 0 / 470 MB, free: 52.12 MB / 346.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.002528/1.046, allocations: 0.9263 MB / 471 MB, free: 51.18 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.912e-05/1.046, allocations: 4 kB / 471 MB, free: 51.18 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001181/1.046, allocations: 59.98 kB / 471 MB, free: 51.12 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000629/1.047, allocations: 157.1 kB / 471.2 MB, free: 50.96 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008452/1.048, allocations: 115.8 kB / 471.3 MB, free: 50.85 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003675/1.051, allocations: 2.332 MB / 473.6 MB, free: 48.38 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001017/1.052, allocations: 44.02 kB / 473.7 MB, free: 48.34 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001011/1.053, allocations: 32 kB / 473.7 MB, free: 48.31 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.0007192/1.053, allocations: 270.8 kB / 474 MB, free: 48.04 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003293/1.054, allocations: 177.9 kB / 474.1 MB, free: 47.86 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003156/1.057, allocations: 0.9254 MB / 475.1 MB, free: 46.92 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.43e-05/1.057, allocations: 4 kB / 475.1 MB, free: 46.92 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.793e-06/1.057, allocations: 4 kB / 475.1 MB, free: 46.91 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.224e-05/1.057, allocations: 3.984 kB / 475.1 MB, free: 46.91 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001698/1.059, allocations: 0.8709 MB / 476 MB, free: 45.99 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001301/1.059, allocations: 55.98 kB / 476 MB, free: 45.93 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006637/1.059, allocations: 71.89 kB / 476.1 MB, free: 45.86 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006274/1.06, allocations: 154.2 kB / 476.2 MB, free: 45.71 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.767e-05/1.06, allocations: 19.98 kB / 476.3 MB, free: 45.69 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003617/1.064, allocations: 2.29 MB / 478.5 MB, free: 43.27 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/1.064, allocations: 3.953 kB / 478.5 MB, free: 43.27 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003186/1.067, allocations: 1.092 MB / 479.6 MB, free: 42.15 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006532/1.068, allocations: 259 kB / 479.9 MB, free: 41.88 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002471/1.068, allocations: 8 kB / 479.9 MB, free: 41.87 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007001/1.069, allocations: 23.98 kB / 479.9 MB, free: 41.85 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001861/1.069, allocations: 44.38 kB / 480 MB, free: 41.8 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.845e-05/1.069, allocations: 23.98 kB / 480 MB, free: 41.78 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001576/1.071, allocations: 0.8461 MB / 480.8 MB, free: 40.95 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.81e-07/1.071, allocations: 0 / 480.8 MB, free: 40.95 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001665/1.072, allocations: 431.6 kB / 481.3 MB, free: 40.52 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.004398/1.077, allocations: 2.068 MB / 483.3 MB, free: 38.42 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002423/1.079, allocations: 0.8601 MB / 484.2 MB, free: 37.54 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/1.079, allocations: 0 / 484.2 MB, free: 37.54 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001553/1.081, allocations: 0.6175 MB / 484.8 MB, free: 36.89 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001032/1.082, allocations: 164.4 kB / 485 MB, free: 36.73 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02142/1.103, allocations: 11.46 MB / 496.4 MB, free: 24.62 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006455/1.104, allocations: 1.196 MB / 497.6 MB, free: 23.39 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0008784/1.105, allocations: 153.5 kB / 497.8 MB, free: 23.24 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008099/1.106, allocations: 0.5579 MB / 498.3 MB, free: 22.68 MB / 346.7 MB Notification: Performance of SimCode: time 1.192e-06/1.106, allocations: 0 / 498.3 MB, free: 22.68 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1005/1.206, allocations: 27.74 MB / 0.5137 GB, free: 10.94 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003721/1.207, allocations: 192.7 kB / 0.5139 GB, free: 10.7 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.126/5.333, allocations: 0 / 0.5139 GB, free: 10.7 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Oscillator_res.mat does not exist to compare? outputFormat=mat