Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.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.Analog.Examples.OpAmps.InvertingSchmittTrigger,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.174/2.174, allocations: 194.9 MB / 211.1 MB, free: 8.566 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003542/0.0003542, allocations: 12 kB / 264.1 MB, free: 3.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3625/0.3629, allocations: 44.51 MB / 308.6 MB, free: 12.78 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1379/0.5009, allocations: 74.46 MB / 383 MB, free: 2.211 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003427/0.5013, allocations: 79.95 kB / 383.1 MB, free: 2.133 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02607/0.5274, allocations: 5.189 MB / 388.3 MB, free: 12.93 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.455e-06/0.5274, allocations: 4 kB / 388.3 MB, free: 12.93 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.01e-05/0.5275, allocations: 8 kB / 388.3 MB, free: 12.92 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: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.001522/0.529, allocations: 0.5836 MB / 388.9 MB, free: 12.28 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.98e-05/0.5291, allocations: 8.031 kB / 388.9 MB, free: 12.27 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001121/0.5292, allocations: 54.55 kB / 389 MB, free: 12.21 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.92e-05/0.5293, allocations: 23.72 kB / 389 MB, free: 12.19 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004756/0.5298, allocations: 262.5 kB / 389.2 MB, free: 11.89 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.057e-05/0.5298, allocations: 16.44 kB / 389.3 MB, free: 11.88 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.054e-05/0.5299, allocations: 16 kB / 389.3 MB, free: 11.86 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008881/0.5308, allocations: 243.2 kB / 389.5 MB, free: 11.61 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.387e-05/0.5308, allocations: 0 / 389.5 MB, free: 11.61 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.007e-05/0.5309, allocations: 8 kB / 389.5 MB, free: 11.61 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.394e-05/0.5309, allocations: 8 kB / 389.5 MB, free: 11.6 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00105/0.5319, allocations: 225.6 kB / 389.7 MB, free: 11.38 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002822/0.5348, allocations: 0.8962 MB / 390.6 MB, free: 10.41 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001413/0.5363, allocations: 218.5 kB / 390.9 MB, free: 10.18 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.996e-05/0.5364, allocations: 8 kB / 390.9 MB, free: 10.18 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001024/0.5374, allocations: 173.9 kB / 391 MB, free: 9.984 MB / 330.7 MB Notification: Performance of pre-optimization done (n=13): time 3.987e-06/0.5375, allocations: 224 / 391 MB, free: 9.984 MB / 330.7 MB Notification: Performance of matching and sorting (n=13): time 0.004435/0.5419, allocations: 0.542 MB / 391.6 MB, free: 9.414 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001177/0.5421, allocations: 118.7 kB / 391.7 MB, free: 9.273 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000609/0.5427, allocations: 237.7 kB / 391.9 MB, free: 9.035 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.653e-05/0.5428, allocations: 25.7 kB / 391.9 MB, free: 9.004 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002175/0.543, allocations: 179.8 kB / 392.1 MB, free: 8.824 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.144e-05/0.5431, allocations: 35.45 kB / 392.2 MB, free: 8.789 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.876e-05/0.5432, allocations: 7.938 kB / 392.2 MB, free: 8.781 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002442/0.5435, allocations: 338.8 kB / 392.5 MB, free: 8.441 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007367/0.5442, allocations: 99.8 kB / 392.6 MB, free: 8.344 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008128/0.545, allocations: 165.4 kB / 392.8 MB, free: 8.148 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007834/0.5459, allocations: 133.5 kB / 392.9 MB, free: 8.012 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.494e-06/0.5459, allocations: 0 / 392.9 MB, free: 8.012 MB / 330.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.002715/0.5486, allocations: 407.8 kB / 393.3 MB, free: 7.598 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.363e-05/0.5488, allocations: 37.66 kB / 393.3 MB, free: 7.555 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.289e-05/0.5488, allocations: 0 / 393.3 MB, free: 7.555 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001117/0.55, allocations: 100.8 kB / 393.4 MB, free: 7.453 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000536/0.5505, allocations: 47.91 kB / 393.5 MB, free: 7.406 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005407/0.556, allocations: 1.773 MB / 395.2 MB, free: 5.484 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008293/0.5569, allocations: 52 kB / 395.3 MB, free: 5.434 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.33e-05/0.5569, allocations: 12 kB / 395.3 MB, free: 5.422 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.vIn.signalSource.T_start,vIn.signalSource.T_start,$PRE.vIn.signalSource.count,vIn.signalSource.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * 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: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0003201/0.5573, allocations: 137.7 kB / 395.4 MB, free: 5.277 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001031/0.5574, allocations: 31.66 kB / 395.5 MB, free: 5.246 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.319e-05/0.5575, allocations: 25.83 kB / 395.5 MB, free: 5.223 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.166e-06/0.5575, allocations: 8 kB / 395.5 MB, free: 5.215 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.177e-06/0.5576, allocations: 0 / 395.5 MB, free: 5.215 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.5576, allocations: 0 / 395.5 MB, free: 5.215 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005781/0.5582, allocations: 285.5 kB / 395.8 MB, free: 4.887 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.5582, allocations: 0 / 395.8 MB, free: 4.887 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003386/0.5585, allocations: 27.97 kB / 395.8 MB, free: 4.859 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009774/0.5595, allocations: 96.91 kB / 395.9 MB, free: 4.762 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.828e-05/0.5596, allocations: 8 kB / 395.9 MB, free: 4.754 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005081/0.5647, allocations: 1.758 MB / 397.7 MB, free: 2.852 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.581e-06/0.5648, allocations: 8.062 kB / 397.7 MB, free: 2.844 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002213/0.567, allocations: 341.9 kB / 398 MB, free: 2.488 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001628/0.5672, allocations: 92.83 kB / 398.1 MB, free: 2.379 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001012/0.5673, allocations: 7.953 kB / 398.1 MB, free: 2.371 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005664/0.5679, allocations: 31.97 kB / 398.1 MB, free: 2.34 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000146/0.5681, allocations: 27.95 kB / 398.2 MB, free: 2.312 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.161e-05/0.5681, allocations: 8 kB / 398.2 MB, free: 2.305 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004396/0.5686, allocations: 182 kB / 398.4 MB, free: 2.125 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.81e-07/0.5686, allocations: 0 / 398.4 MB, free: 2.125 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001151/0.5698, allocations: 71.84 kB / 398.4 MB, free: 2.055 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.002921/0.5727, allocations: 0.8746 MB / 399.3 MB, free: 1.148 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002058/0.5748, allocations: 401.8 kB / 399.7 MB, free: 0.7305 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.731e-06/0.5749, allocations: 0 / 399.7 MB, free: 0.7305 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001028/0.5759, allocations: 235.1 kB / 399.9 MB, free: 500 kB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006059/0.5766, allocations: 32.55 kB / 399.9 MB, free: 468 kB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01047/0.5871, allocations: 2.958 MB / 402.9 MB, free: 13.41 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005402/0.5877, allocations: 0.7479 MB / 403.7 MB, free: 12.63 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002851/0.588, allocations: 22.48 kB / 403.7 MB, free: 12.61 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002379/0.5882, allocations: 71.41 kB / 403.7 MB, free: 12.54 MB / 346.7 MB Notification: Performance of SimCode: time 1.443e-06/0.5883, allocations: 4 kB / 403.7 MB, free: 12.54 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0761/0.6644, allocations: 5.379 MB / 409.1 MB, free: 7.199 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003555/0.6648, allocations: 228.1 kB / 409.4 MB, free: 6.957 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.839/3.504, allocations: 4 kB / 409.4 MB, free: 6.953 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger_res.mat does not exist to compare? outputFormat=mat