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.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_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.051/2.051, allocations: 194.9 MB / 211.1 MB, free: 8.566 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003679/0.0003679, allocations: 8 kB / 264.1 MB, free: 3.473 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3271/0.3275, allocations: 44.49 MB / 308.6 MB, free: 12.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1505/0.478, allocations: 75.42 MB / 384 MB, free: 1.133 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003401/0.4784, allocations: 79.95 kB / 384.1 MB, free: 1.055 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02667/0.5051, allocations: 5.613 MB / 389.7 MB, free: 11.43 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.595e-06/0.5052, allocations: 0 / 389.7 MB, free: 11.43 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.456e-05/0.5052, allocations: 12 kB / 389.7 MB, free: 11.41 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001795/0.507, allocations: 0.627 MB / 390.3 MB, free: 10.73 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.29e-05/0.5071, allocations: 8.031 kB / 390.3 MB, free: 10.73 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000137/0.5072, allocations: 54.55 kB / 390.4 MB, free: 10.66 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001103/0.5074, allocations: 35.61 kB / 390.4 MB, free: 10.63 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005223/0.5079, allocations: 278.5 kB / 390.7 MB, free: 10.32 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.356e-05/0.508, allocations: 20.56 kB / 390.7 MB, free: 10.29 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.375e-05/0.5081, allocations: 24 kB / 390.7 MB, free: 10.27 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001017/0.5091, allocations: 276.8 kB / 391 MB, free: 9.992 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.497e-05/0.5091, allocations: 0 / 391 MB, free: 9.992 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.734e-05/0.5092, allocations: 12 kB / 391 MB, free: 9.98 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.07e-05/0.5092, allocations: 4 kB / 391 MB, free: 9.977 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001218/0.5104, allocations: 262.1 kB / 391.3 MB, free: 9.723 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002976/0.5135, allocations: 1.078 MB / 392.4 MB, free: 8.551 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001056/0.5146, allocations: 178.6 kB / 392.5 MB, free: 8.367 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.797e-05/0.5146, allocations: 4.188 kB / 392.5 MB, free: 8.363 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006248/0.5153, allocations: 149 kB / 392.7 MB, free: 8.199 MB / 330.7 MB Notification: Performance of pre-optimization done (n=10): time 2.895e-06/0.5153, allocations: 4 kB / 392.7 MB, free: 8.195 MB / 330.7 MB Notification: Performance of matching and sorting (n=10): time 0.001867/0.5172, allocations: 403.1 kB / 393.1 MB, free: 7.773 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.009e-05/0.5173, allocations: 85.11 kB / 393.2 MB, free: 7.672 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005471/0.5178, allocations: 287.6 kB / 393.4 MB, free: 7.379 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.614e-05/0.5179, allocations: 29.64 kB / 393.5 MB, free: 7.344 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001987/0.5181, allocations: 211.5 kB / 393.7 MB, free: 7.133 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.449e-05/0.5182, allocations: 31.55 kB / 393.7 MB, free: 7.102 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.303e-05/0.5182, allocations: 4 kB / 393.7 MB, free: 7.098 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001537/0.5184, allocations: 334.8 kB / 394 MB, free: 6.762 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005387/0.5189, allocations: 96.41 kB / 394.1 MB, free: 6.668 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005857/0.5195, allocations: 198.5 kB / 394.3 MB, free: 6.426 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005827/0.5201, allocations: 137.7 kB / 394.5 MB, free: 6.285 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.428e-06/0.5202, allocations: 0 / 394.5 MB, free: 6.285 MB / 330.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0015/0.5217, allocations: 383.8 kB / 394.8 MB, free: 5.895 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.275e-05/0.5218, allocations: 37.69 kB / 394.9 MB, free: 5.852 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.612e-05/0.5218, allocations: 7.984 kB / 394.9 MB, free: 5.844 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002616/0.5221, allocations: 32.91 kB / 394.9 MB, free: 5.809 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004661/0.5226, allocations: 63.89 kB / 395 MB, free: 5.746 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001478/0.5241, allocations: 1.304 MB / 396.3 MB, free: 4.312 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006195/0.5247, allocations: 47.66 kB / 396.3 MB, free: 4.266 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.421e-05/0.5248, allocations: 20.12 kB / 396.3 MB, free: 4.246 MB / 330.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.0002519/0.5251, allocations: 149.7 kB / 396.5 MB, free: 4.09 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.686e-05/0.5251, allocations: 27.67 kB / 396.5 MB, free: 4.062 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.827e-05/0.5252, allocations: 29.84 kB / 396.5 MB, free: 4.031 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.722e-06/0.5253, allocations: 4 kB / 396.5 MB, free: 4.027 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.5253, allocations: 0 / 396.5 MB, free: 4.027 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.87e-06/0.5253, allocations: 0 / 396.5 MB, free: 4.027 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007194/0.526, allocations: 451.1 kB / 397 MB, free: 3.527 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/0.526, allocations: 3.938 kB / 397 MB, free: 3.523 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002866/0.5263, allocations: 27.97 kB / 397 MB, free: 3.496 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001751/0.5265, allocations: 28.78 kB / 397 MB, free: 3.465 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.348e-05/0.5266, allocations: 7.984 kB / 397.1 MB, free: 3.457 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001345/0.5279, allocations: 1.296 MB / 398.3 MB, free: 2.027 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.528, allocations: 4.188 kB / 398.4 MB, free: 2.023 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001118/0.5291, allocations: 280.4 kB / 398.6 MB, free: 1.719 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000136/0.5292, allocations: 108.8 kB / 398.7 MB, free: 1.594 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.008e-05/0.5293, allocations: 4 kB / 398.7 MB, free: 1.59 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003895/0.5297, allocations: 31.97 kB / 398.8 MB, free: 1.559 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001057/0.5298, allocations: 19.94 kB / 398.8 MB, free: 1.539 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.133e-05/0.5299, allocations: 7.984 kB / 398.8 MB, free: 1.531 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003918/0.5303, allocations: 219.1 kB / 399 MB, free: 1.316 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.5303, allocations: 0 / 399 MB, free: 1.316 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005046/0.5308, allocations: 71.84 kB / 399.1 MB, free: 1.246 MB / 330.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.001516/0.5323, allocations: 0.8826 MB / 400 MB, free: 336 kB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001435/0.5338, allocations: 397.9 kB / 400.4 MB, free: 15.91 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.5338, allocations: 0 / 400.4 MB, free: 15.91 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006805/0.5345, allocations: 207.5 kB / 400.6 MB, free: 15.7 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004127/0.5349, allocations: 36.95 kB / 400.6 MB, free: 15.66 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006775/0.5417, allocations: 3.947 MB / 404.5 MB, free: 11.59 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004981/0.5423, allocations: 0.7599 MB / 405.3 MB, free: 10.81 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0003173/0.5426, allocations: 34.97 kB / 405.3 MB, free: 10.77 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002641/0.5429, allocations: 83.41 kB / 405.4 MB, free: 10.69 MB / 346.7 MB Notification: Performance of SimCode: time 1.322e-06/0.5429, allocations: 0 / 405.4 MB, free: 10.69 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08401/0.6269, allocations: 5.226 MB / 410.6 MB, free: 5.508 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002844/0.6273, allocations: 201.2 kB / 410.8 MB, free: 5.27 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.856/3.483, allocations: 7.938 kB / 410.8 MB, free: 5.262 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat does not exist to compare? outputFormat=mat