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.Comparator.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.Comparator,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.888/1.888, allocations: 194.9 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005089/0.000509, allocations: 15.94 kB / 264.1 MB, free: 13.46 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1139/0.1144, allocations: 44.5 MB / 308.5 MB, free: 0.8867 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.443/0.5575, allocations: 75.41 MB / 384 MB, free: 14.56 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003899/0.558, allocations: 79.19 kB / 384 MB, free: 14.56 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02394/0.5819, allocations: 5.613 MB / 389.6 MB, free: 13.89 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.464e-06/0.582, allocations: 0 / 389.6 MB, free: 13.89 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.92e-05/0.582, allocations: 11.75 kB / 389.7 MB, free: 13.89 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001492/0.5835, allocations: 0.6252 MB / 390.3 MB, free: 13.4 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.663e-05/0.5836, allocations: 11.66 kB / 390.3 MB, free: 13.4 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.898e-05/0.5837, allocations: 56.66 kB / 390.3 MB, free: 13.36 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.788e-05/0.5838, allocations: 33.94 kB / 390.4 MB, free: 13.35 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003886/0.5842, allocations: 273.9 kB / 390.7 MB, free: 13.12 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.659e-05/0.5842, allocations: 14.84 kB / 390.7 MB, free: 13.12 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.53e-05/0.5843, allocations: 28.66 kB / 390.7 MB, free: 13.12 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008337/0.5851, allocations: 276.2 kB / 391 MB, free: 13.07 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.52e-05/0.5852, allocations: 2.953 kB / 391 MB, free: 13.07 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.084e-05/0.5852, allocations: 9.594 kB / 391 MB, free: 13.07 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.136e-05/0.5852, allocations: 5.219 kB / 391 MB, free: 13.07 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001033/0.5863, allocations: 262.1 kB / 391.2 MB, free: 13.06 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002269/0.5886, allocations: 1.082 MB / 392.3 MB, free: 12.52 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009339/0.5895, allocations: 185.6 kB / 392.5 MB, free: 12.48 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.827e-05/0.5896, allocations: 0 / 392.5 MB, free: 12.48 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000553/0.5902, allocations: 150.4 kB / 392.6 MB, free: 12.42 MB / 314.7 MB Notification: Performance of pre-optimization done (n=10): time 1.904e-06/0.5902, allocations: 0 / 392.6 MB, free: 12.42 MB / 314.7 MB Notification: Performance of matching and sorting (n=10): time 0.001589/0.5918, allocations: 402.6 kB / 393 MB, free: 12.25 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.174e-05/0.5918, allocations: 83.88 kB / 393.1 MB, free: 12.16 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003973/0.5922, allocations: 282 kB / 393.4 MB, free: 12.05 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.992e-05/0.5923, allocations: 32.8 kB / 393.4 MB, free: 12.02 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001239/0.5924, allocations: 252.6 kB / 393.7 MB, free: 11.82 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.911e-05/0.5925, allocations: 36.75 kB / 393.7 MB, free: 11.79 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.056e-05/0.5925, allocations: 7.688 kB / 393.7 MB, free: 11.79 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.753e-05/0.5926, allocations: 317.2 kB / 394 MB, free: 11.48 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004358/0.593, allocations: 98.44 kB / 394.1 MB, free: 11.48 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005075/0.5935, allocations: 199.5 kB / 394.3 MB, free: 11.34 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004691/0.594, allocations: 139.9 kB / 394.5 MB, free: 11.3 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.518e-06/0.594, allocations: 0 / 394.5 MB, free: 11.3 MB / 314.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001187/0.5952, allocations: 367 kB / 394.8 MB, free: 11.19 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.704e-05/0.5953, allocations: 36.2 kB / 394.9 MB, free: 11.16 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.277e-06/0.5953, allocations: 3.781 kB / 394.9 MB, free: 11.16 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002231/0.5955, allocations: 32.22 kB / 394.9 MB, free: 11.15 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004073/0.596, allocations: 60.88 kB / 394.9 MB, free: 11.14 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000998/0.597, allocations: 1.323 MB / 396.3 MB, free: 9.863 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005627/0.5976, allocations: 51.75 kB / 396.3 MB, free: 9.848 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.235e-05/0.5976, allocations: 11.19 kB / 396.3 MB, free: 9.848 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (26): * Single equations (assignments): 24 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001982/0.5978, allocations: 146.4 kB / 396.5 MB, free: 9.727 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.109e-05/0.5979, allocations: 31.11 kB / 396.5 MB, free: 9.711 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.707e-05/0.5979, allocations: 25.05 kB / 396.5 MB, free: 9.703 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.678e-06/0.598, allocations: 3.938 kB / 396.5 MB, free: 9.703 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.02e-06/0.598, allocations: 0 / 396.5 MB, free: 9.703 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.489e-06/0.598, allocations: 0 / 396.5 MB, free: 9.703 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004891/0.5985, allocations: 453.8 kB / 397 MB, free: 9.391 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.5985, allocations: 0 / 397 MB, free: 9.391 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002434/0.5988, allocations: 28 kB / 397 MB, free: 9.391 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001454/0.5989, allocations: 33.97 kB / 397 MB, free: 9.375 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.554e-05/0.5989, allocations: 3.875 kB / 397 MB, free: 9.375 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008925/0.5998, allocations: 1.298 MB / 398.3 MB, free: 8.109 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.694e-06/0.5999, allocations: 4.25 kB / 398.3 MB, free: 8.105 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009288/0.6008, allocations: 274.7 kB / 398.6 MB, free: 7.984 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.924e-05/0.6009, allocations: 103 kB / 398.7 MB, free: 7.879 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.956e-05/0.601, allocations: 11.34 kB / 398.7 MB, free: 7.875 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000403/0.6014, allocations: 32.12 kB / 398.8 MB, free: 7.867 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.943e-05/0.6015, allocations: 24.47 kB / 398.8 MB, free: 7.859 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.605e-05/0.6015, allocations: 6.844 kB / 398.8 MB, free: 7.859 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002875/0.6018, allocations: 222.8 kB / 399 MB, free: 7.777 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.6018, allocations: 0 / 399 MB, free: 7.777 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004861/0.6023, allocations: 72.62 kB / 399.1 MB, free: 7.77 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001205/0.6035, allocations: 0.8815 MB / 400 MB, free: 7.055 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00123/0.6048, allocations: 395.6 kB / 400.3 MB, free: 6.863 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.6048, allocations: 0 / 400.3 MB, free: 6.863 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005878/0.6054, allocations: 208.3 kB / 400.5 MB, free: 6.746 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003914/0.6058, allocations: 36.72 kB / 400.6 MB, free: 6.742 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004738/0.6106, allocations: 3.97 MB / 404.5 MB, free: 19.72 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003812/0.611, allocations: 0.7566 MB / 405.3 MB, free: 19.02 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002064/0.6112, allocations: 89.67 kB / 405.4 MB, free: 19.01 MB / 330.7 MB Notification: Performance of SimCode: time 1.152e-06/0.6112, allocations: 4 kB / 405.4 MB, free: 19.01 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.679/3.29, allocations: 5.511 MB / 410.9 MB, free: 17.85 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.Comparator_res.mat does not exist to compare? outputFormat=mat