Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001188/0.001188, allocations: 105.8 kB / 16.92 MB, free: 6.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001268/0.001268, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.371/1.371, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001077/0.001077, allocations: 47.92 kB / 300.7 MB, free: 5.762 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08372/0.08482, allocations: 49.45 MB / 350.2 MB, free: 4.309 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger): time 0.004255/0.08912, allocations: 2.746 MB / 352.9 MB, free: 1.539 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00124/0.09039, allocations: 0.67 MB / 353.6 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001952/0.0906, allocations: 4 kB / 353.6 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001671/0.0908, allocations: 43.58 kB / 353.6 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000244/0.09105, allocations: 95.23 kB / 353.7 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003088/0.09137, allocations: 91.81 kB / 353.8 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004005/0.09178, allocations: 362.5 kB / 354.2 MB, free: 284 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000201/0.09199, allocations: 88.55 kB / 354.3 MB, free: 192 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001877/0.09219, allocations: 135.4 kB / 354.4 MB, free: 56 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001936/0.09239, allocations: 139.6 kB / 354.5 MB, free: 15.91 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.843e-05/0.09245, allocations: 28 kB / 354.6 MB, free: 15.89 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.49e-05/0.09252, allocations: 39.88 kB / 354.6 MB, free: 15.85 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.004e-05/0.09258, allocations: 59.81 kB / 354.7 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001593/0.09275, allocations: 147.2 kB / 354.8 MB, free: 15.64 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000307/0.09306, allocations: 323 kB / 355.1 MB, free: 15.33 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.09308, allocations: 0 / 355.1 MB, free: 15.33 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.173e-06/0.09308, allocations: 0 / 355.1 MB, free: 15.33 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.155e-06/0.0931, allocations: 0 / 355.1 MB, free: 15.33 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001255/0.09436, allocations: 0.634 MB / 355.8 MB, free: 14.64 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.08e-05/0.09441, allocations: 12.03 kB / 355.8 MB, free: 14.63 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.747e-05/0.09447, allocations: 50.73 kB / 355.8 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.91e-05/0.09456, allocations: 40.5 kB / 355.9 MB, free: 14.53 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003271/0.09489, allocations: 279.6 kB / 356.1 MB, free: 14.22 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.063e-05/0.09492, allocations: 16.81 kB / 356.1 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.255e-05/0.09496, allocations: 20.38 kB / 356.2 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006299/0.0956, allocations: 277.9 kB / 356.4 MB, free: 13.9 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.004e-05/0.09562, allocations: 4 kB / 356.4 MB, free: 13.9 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.586e-05/0.09565, allocations: 4 kB / 356.4 MB, free: 13.89 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.184e-06/0.09567, allocations: 4 kB / 356.4 MB, free: 13.89 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007736/0.09644, allocations: 249.5 kB / 356.7 MB, free: 13.64 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001551/0.09801, allocations: 0.952 MB / 357.6 MB, free: 12.62 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008343/0.09886, allocations: 242.5 kB / 357.9 MB, free: 12.37 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003399/0.09921, allocations: 112.8 kB / 358 MB, free: 12.26 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.111e-05/0.09924, allocations: 0 / 358 MB, free: 12.26 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005242/0.09977, allocations: 184 kB / 358.2 MB, free: 12.06 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.392e-06/0.09978, allocations: 0 / 358.2 MB, free: 12.06 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.002391/0.1022, allocations: 0.6473 MB / 358.8 MB, free: 11.38 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.299e-05/0.1023, allocations: 110.8 kB / 358.9 MB, free: 11.25 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002579/0.1025, allocations: 274.4 kB / 359.2 MB, free: 10.98 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.347e-05/0.1026, allocations: 29.7 kB / 359.2 MB, free: 10.95 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001016/0.1027, allocations: 168 kB / 359.4 MB, free: 10.78 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.84e-05/0.1027, allocations: 51.28 kB / 359.4 MB, free: 10.73 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.992e-05/0.1028, allocations: 49.7 kB / 359.5 MB, free: 10.67 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001024/0.1029, allocations: 326.8 kB / 359.8 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000355/0.1033, allocations: 104.1 kB / 359.9 MB, free: 10.24 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003881/0.1037, allocations: 176 kB / 360.1 MB, free: 10.04 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006926/0.1044, allocations: 264.3 kB / 360.3 MB, free: 9.754 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.005e-06/0.1044, allocations: 0 / 360.3 MB, free: 9.754 MB / 302.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.001263/0.1056, allocations: 438.4 kB / 360.8 MB, free: 9.312 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.33e-05/0.1057, allocations: 29.7 kB / 360.8 MB, free: 9.277 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.634e-06/0.1057, allocations: 4 kB / 360.8 MB, free: 9.273 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003691/0.1061, allocations: 80.86 kB / 360.9 MB, free: 9.191 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002004/0.1063, allocations: 39.91 kB / 360.9 MB, free: 9.152 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002619/0.1089, allocations: 1.954 MB / 362.9 MB, free: 7.055 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003314/0.1093, allocations: 51.86 kB / 362.9 MB, free: 7.004 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.143e-05/0.1093, allocations: 8 kB / 362.9 MB, free: 6.996 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 5 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001399/0.1094, allocations: 141.2 kB / 363.1 MB, free: 6.852 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.571e-05/0.1095, allocations: 27.66 kB / 363.1 MB, free: 6.824 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.447e-05/0.1096, allocations: 21.83 kB / 363.1 MB, free: 6.801 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.1096, allocations: 4 kB / 363.1 MB, free: 6.797 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.244e-06/0.1096, allocations: 4 kB / 363.1 MB, free: 6.793 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.1096, allocations: 0 / 363.1 MB, free: 6.793 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002607/0.1098, allocations: 301.3 kB / 363.4 MB, free: 6.449 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.1099, allocations: 4 kB / 363.4 MB, free: 6.445 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001443/0.11, allocations: 19.97 kB / 363.4 MB, free: 6.426 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002799/0.1103, allocations: 80.75 kB / 363.5 MB, free: 6.344 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.51e-05/0.1103, allocations: 3.984 kB / 363.5 MB, free: 6.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002186/0.1125, allocations: 1.758 MB / 365.3 MB, free: 4.445 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.1125, allocations: 0 / 365.3 MB, free: 4.445 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001084/0.1136, allocations: 360.8 kB / 365.6 MB, free: 4.074 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.597e-05/0.1137, allocations: 100.8 kB / 365.7 MB, free: 3.957 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.972e-05/0.1137, allocations: 8 kB / 365.7 MB, free: 3.949 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002601/0.114, allocations: 39.89 kB / 365.8 MB, free: 3.91 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.189e-05/0.1141, allocations: 15.98 kB / 365.8 MB, free: 3.895 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.491e-05/0.1141, allocations: 11.98 kB / 365.8 MB, free: 3.883 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001685/0.1143, allocations: 186 kB / 366 MB, free: 3.703 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1143, allocations: 0 / 366 MB, free: 3.703 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.00035/0.1146, allocations: 63.91 kB / 366 MB, free: 3.641 MB / 302.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001384/0.116, allocations: 0.9017 MB / 367 MB, free: 2.703 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001007/0.1171, allocations: 421.6 kB / 367.4 MB, free: 2.266 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.508e-06/0.1171, allocations: 0 / 367.4 MB, free: 2.266 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004828/0.1176, allocations: 235 kB / 367.6 MB, free: 2.023 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003339/0.1179, allocations: 44.47 kB / 367.6 MB, free: 1.98 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1454/0.2634, allocations: 2.911 MB / 370.5 MB, free: 24.7 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002075/0.2636, allocations: 0.7479 MB / 371.3 MB, free: 24 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.00014/0.2638, allocations: 21.48 kB / 371.3 MB, free: 23.99 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001208/0.2639, allocations: 74.95 kB / 371.4 MB, free: 23.98 MB / 302.1 MB Notification: Performance of SimCode: time 6.81e-07/0.2639, allocations: 2.375 kB / 371.4 MB, free: 23.98 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02972/0.2936, allocations: 6.238 MB / 377.6 MB, free: 23.37 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.27/11.56, allocations: 12.09 kB / 377.6 MB, free: 23.36 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/SchmittTrigger/SchmittTrigger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches