Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.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.SchmittTrigger,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.87/1.87, allocations: 194.9 MB / 211.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003416/0.0003417, allocations: 12 kB / 264 MB, free: 13.46 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1035, allocations: 44.51 MB / 308.6 MB, free: 0.8789 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3936/0.4972, allocations: 74.45 MB / 383 MB, free: 14.49 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003068/0.4975, allocations: 80.66 kB / 383.1 MB, free: 14.49 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02219/0.5197, allocations: 5.18 MB / 388.3 MB, free: 13.86 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.385e-06/0.5198, allocations: 1.594 kB / 388.3 MB, free: 13.86 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.669e-05/0.5198, allocations: 7.938 kB / 388.3 MB, free: 13.85 MB / 314.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.001232/0.5211, allocations: 0.5807 MB / 388.8 MB, free: 13.38 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.035e-05/0.5211, allocations: 11.78 kB / 388.9 MB, free: 13.38 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.404e-05/0.5212, allocations: 58.83 kB / 388.9 MB, free: 13.34 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.609e-05/0.5213, allocations: 27.22 kB / 388.9 MB, free: 13.33 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000329/0.5216, allocations: 264.2 kB / 389.2 MB, free: 13.11 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.215e-05/0.5217, allocations: 17.44 kB / 389.2 MB, free: 13.1 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.374e-05/0.5217, allocations: 17.88 kB / 389.2 MB, free: 13.1 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007389/0.5225, allocations: 233 kB / 389.5 MB, free: 13.06 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.335e-05/0.5225, allocations: 3.906 kB / 389.5 MB, free: 13.06 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.443e-05/0.5225, allocations: 3.125 kB / 389.5 MB, free: 13.06 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.745e-06/0.5226, allocations: 3.875 kB / 389.5 MB, free: 13.06 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000974/0.5235, allocations: 230.2 kB / 389.7 MB, free: 13.05 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001921/0.5255, allocations: 0.8979 MB / 390.6 MB, free: 12.6 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009437/0.5264, allocations: 213.8 kB / 390.8 MB, free: 12.56 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.76e-05/0.5265, allocations: 7.844 kB / 390.8 MB, free: 12.56 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005684/0.5271, allocations: 169 kB / 391 MB, free: 12.48 MB / 314.7 MB Notification: Performance of pre-optimization done (n=13): time 3.096e-06/0.5271, allocations: 4.219 kB / 391 MB, free: 12.48 MB / 314.7 MB Notification: Performance of matching and sorting (n=13): time 0.002864/0.53, allocations: 0.548 MB / 391.5 MB, free: 12.32 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.395e-05/0.53, allocations: 118.4 kB / 391.6 MB, free: 12.18 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002751/0.5303, allocations: 225.1 kB / 391.9 MB, free: 12.09 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.816e-05/0.5303, allocations: 29.67 kB / 391.9 MB, free: 12.06 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.47e-05/0.5305, allocations: 229.2 kB / 392.1 MB, free: 11.87 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.412e-05/0.5305, allocations: 42.84 kB / 392.2 MB, free: 11.85 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.693e-05/0.5305, allocations: 0 / 392.2 MB, free: 11.85 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.881e-05/0.5306, allocations: 324.3 kB / 392.5 MB, free: 11.53 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004266/0.531, allocations: 96.89 kB / 392.6 MB, free: 11.52 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004576/0.5315, allocations: 154.5 kB / 392.7 MB, free: 11.45 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004557/0.532, allocations: 129.8 kB / 392.9 MB, free: 11.4 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.532, allocations: 3.969 kB / 392.9 MB, free: 11.4 MB / 314.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.001586/0.5336, allocations: 377.7 kB / 393.2 MB, free: 11.31 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.053e-05/0.5337, allocations: 38 kB / 393.3 MB, free: 11.27 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.027e-06/0.5337, allocations: 0 / 393.3 MB, free: 11.27 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007424/0.5344, allocations: 95.81 kB / 393.4 MB, free: 11.26 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00034/0.5348, allocations: 51.02 kB / 393.4 MB, free: 11.26 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003367/0.5382, allocations: 1.783 MB / 395.2 MB, free: 9.852 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005485/0.5388, allocations: 54.84 kB / 395.2 MB, free: 9.836 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.665e-05/0.5388, allocations: 3.719 kB / 395.2 MB, free: 9.836 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (18): * Single equations (assignments): 16 * 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.000199/0.539, allocations: 145.1 kB / 395.4 MB, free: 9.715 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.708e-05/0.5391, allocations: 18.5 kB / 395.4 MB, free: 9.707 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.506e-05/0.5391, allocations: 26.31 kB / 395.4 MB, free: 9.703 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.5391, allocations: 0 / 395.4 MB, free: 9.703 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.377e-06/0.5392, allocations: 0 / 395.4 MB, free: 9.703 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.981e-06/0.5392, allocations: 11.66 kB / 395.4 MB, free: 9.695 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003012/0.5395, allocations: 296.5 kB / 395.7 MB, free: 9.496 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.447e-06/0.5395, allocations: 0 / 395.7 MB, free: 9.496 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000246/0.5398, allocations: 24.73 kB / 395.8 MB, free: 9.496 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006749/0.5404, allocations: 99.3 kB / 395.9 MB, free: 9.48 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.21e-05/0.5405, allocations: 7.344 kB / 395.9 MB, free: 9.48 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00286/0.5434, allocations: 1.658 MB / 397.5 MB, free: 8.16 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.5434, allocations: 3.938 kB / 397.5 MB, free: 8.156 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001493/0.5449, allocations: 335.5 kB / 397.8 MB, free: 8.055 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.9e-05/0.545, allocations: 106.9 kB / 398 MB, free: 7.945 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.467e-05/0.5451, allocations: 6.672 kB / 398 MB, free: 7.941 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004187/0.5455, allocations: 34.64 kB / 398 MB, free: 7.941 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001015/0.5456, allocations: 27.69 kB / 398 MB, free: 7.934 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.685e-05/0.5456, allocations: 3.75 kB / 398 MB, free: 7.934 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002277/0.5459, allocations: 182.4 kB / 398.2 MB, free: 7.855 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.5459, allocations: 4 kB / 398.2 MB, free: 7.852 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005216/0.5464, allocations: 73.22 kB / 398.3 MB, free: 7.844 MB / 314.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.001728/0.5481, allocations: 0.8696 MB / 399.1 MB, free: 7.219 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001249/0.5494, allocations: 392.7 kB / 399.5 MB, free: 7.031 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/0.5494, allocations: 4.125 kB / 399.5 MB, free: 7.027 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005911/0.55, allocations: 227.4 kB / 399.8 MB, free: 6.914 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003971/0.5505, allocations: 32.06 kB / 399.8 MB, free: 6.91 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004357/0.5548, allocations: 2.471 MB / 402.3 MB, free: 5.34 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004359/0.5553, allocations: 0.7465 MB / 403 MB, free: 20.64 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001898/0.5555, allocations: 83.47 kB / 403.1 MB, free: 20.62 MB / 330.7 MB Notification: Performance of SimCode: time 1.402e-06/0.5555, allocations: 0 / 403.1 MB, free: 20.62 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.638/3.193, allocations: 4.929 MB / 408 MB, free: 19.97 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger_res.mat does not exist to compare? outputFormat=mat