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.001254/0.001259, allocations: 107.7 kB / 17.06 MB, free: 6.098 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.001161/0.001162, allocations: 197.4 kB / 18 MB, free: 5.168 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.361/1.361, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00138/0.00138, allocations: 51.94 kB / 350.8 MB, free: 3.707 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2753/0.2767, allocations: 49.44 MB / 400.3 MB, free: 8.422 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger): time 0.004183/0.2809, allocations: 2.766 MB / 403 MB, free: 6.027 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001193/0.2821, allocations: 0.67 MB / 403.7 MB, free: 5.352 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001178/0.2823, allocations: 8 kB / 403.7 MB, free: 5.344 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001501/0.2824, allocations: 39.58 kB / 403.8 MB, free: 5.305 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001983/0.2826, allocations: 91.23 kB / 403.8 MB, free: 5.215 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002651/0.2829, allocations: 91.83 kB / 403.9 MB, free: 5.125 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004082/0.2833, allocations: 362.5 kB / 404.3 MB, free: 4.77 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001971/0.2835, allocations: 84.7 kB / 404.4 MB, free: 4.684 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001634/0.2837, allocations: 131.5 kB / 404.5 MB, free: 4.555 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002022/0.2839, allocations: 155.3 kB / 404.7 MB, free: 4.402 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.022e-05/0.284, allocations: 28 kB / 404.7 MB, free: 4.375 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.102e-05/0.284, allocations: 28 kB / 404.7 MB, free: 4.348 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.934e-05/0.2841, allocations: 63.77 kB / 404.8 MB, free: 4.285 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000151/0.2843, allocations: 143.3 kB / 404.9 MB, free: 4.145 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003787/0.2847, allocations: 317.8 kB / 405.2 MB, free: 3.836 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.121e-06/0.2847, allocations: 0 / 405.2 MB, free: 3.836 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.2847, allocations: 7.938 kB / 405.2 MB, free: 3.828 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.081e-06/0.2847, allocations: 4 kB / 405.2 MB, free: 3.824 MB / 318.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.001231/0.2859, allocations: 0.6532 MB / 405.9 MB, free: 3.117 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.845e-05/0.286, allocations: 12.03 kB / 405.9 MB, free: 3.105 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.921e-05/0.2861, allocations: 62.66 kB / 406 MB, free: 3.035 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.925e-05/0.2861, allocations: 28.75 kB / 406 MB, free: 3.008 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003815/0.2865, allocations: 275.9 kB / 406.3 MB, free: 2.699 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.056e-05/0.2865, allocations: 16.81 kB / 406.3 MB, free: 2.684 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.827e-05/0.2866, allocations: 20.38 kB / 406.3 MB, free: 2.664 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006749/0.2873, allocations: 281.8 kB / 406.6 MB, free: 2.375 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.105e-05/0.2873, allocations: 0 / 406.6 MB, free: 2.375 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.009e-05/0.2873, allocations: 12 kB / 406.6 MB, free: 2.363 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.075e-06/0.2873, allocations: 4 kB / 406.6 MB, free: 2.359 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007735/0.2881, allocations: 245.6 kB / 406.8 MB, free: 2.117 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001656/0.2898, allocations: 0.9366 MB / 407.8 MB, free: 1.109 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009356/0.2907, allocations: 246.5 kB / 408 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003392/0.2911, allocations: 104.8 kB / 408.1 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.673e-05/0.2911, allocations: 0 / 408.1 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004759/0.2916, allocations: 177.8 kB / 408.3 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 1.352e-06/0.2916, allocations: 0 / 408.3 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.002375/0.294, allocations: 0.6591 MB / 408.9 MB, free: 15.87 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.496e-05/0.2941, allocations: 102.8 kB / 409 MB, free: 15.75 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003068/0.2944, allocations: 274.5 kB / 409.3 MB, free: 15.47 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.522e-05/0.2944, allocations: 33.7 kB / 409.3 MB, free: 15.43 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001279/0.2946, allocations: 168.4 kB / 409.5 MB, free: 15.27 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.216e-05/0.2946, allocations: 55.58 kB / 409.6 MB, free: 15.21 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.394e-05/0.2947, allocations: 41.66 kB / 409.6 MB, free: 15.16 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001535/0.2949, allocations: 330.8 kB / 409.9 MB, free: 14.83 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003491/0.2952, allocations: 95.92 kB / 410 MB, free: 14.74 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004009/0.2957, allocations: 168.5 kB / 410.2 MB, free: 14.54 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007096/0.2964, allocations: 271 kB / 410.4 MB, free: 14.25 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.165e-06/0.2964, allocations: 0 / 410.4 MB, free: 14.25 MB / 334.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.001224/0.2976, allocations: 435.7 kB / 410.9 MB, free: 13.81 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.003e-05/0.2977, allocations: 33.7 kB / 410.9 MB, free: 13.77 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.2977, allocations: 4 kB / 410.9 MB, free: 13.77 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003738/0.2981, allocations: 76.86 kB / 411 MB, free: 13.69 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001941/0.2983, allocations: 43.91 kB / 411 MB, free: 13.64 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002825/0.3011, allocations: 1.962 MB / 413 MB, free: 11.54 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003219/0.3014, allocations: 51.86 kB / 413 MB, free: 11.49 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.43e-05/0.3015, allocations: 12 kB / 413 MB, free: 11.48 MB / 334.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.0001614/0.3016, allocations: 133.8 kB / 413.2 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.077e-05/0.3017, allocations: 27.8 kB / 413.2 MB, free: 11.31 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.811e-05/0.3017, allocations: 25.83 kB / 413.2 MB, free: 11.29 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.3017, allocations: 4 kB / 413.2 MB, free: 11.28 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.502e-06/0.3017, allocations: 0 / 413.2 MB, free: 11.28 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.125e-06/0.3018, allocations: 7.938 kB / 413.2 MB, free: 11.27 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003057/0.3021, allocations: 289.4 kB / 413.5 MB, free: 10.94 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.3021, allocations: 0 / 413.5 MB, free: 10.94 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001343/0.3022, allocations: 23.98 kB / 413.5 MB, free: 10.92 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002752/0.3025, allocations: 84.67 kB / 413.6 MB, free: 10.83 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.726e-05/0.3025, allocations: 7.984 kB / 413.6 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00242/0.305, allocations: 1.758 MB / 415.4 MB, free: 8.926 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.357e-06/0.305, allocations: 3.938 kB / 415.4 MB, free: 8.922 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001076/0.3061, allocations: 352 kB / 415.7 MB, free: 8.559 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.129e-05/0.3062, allocations: 108.8 kB / 415.9 MB, free: 8.434 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.055e-05/0.3062, allocations: 8 kB / 415.9 MB, free: 8.426 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002516/0.3065, allocations: 31.95 kB / 415.9 MB, free: 8.395 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.592e-05/0.3066, allocations: 27.98 kB / 415.9 MB, free: 8.367 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.324e-05/0.3066, allocations: 4 kB / 415.9 MB, free: 8.363 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000218/0.3068, allocations: 190 kB / 416.1 MB, free: 8.176 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3068, allocations: 0 / 416.1 MB, free: 8.176 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003644/0.3072, allocations: 71.89 kB / 416.2 MB, free: 8.105 MB / 334.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.001501/0.3087, allocations: 0.8979 MB / 417.1 MB, free: 7.172 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00106/0.3098, allocations: 405.9 kB / 417.5 MB, free: 6.75 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.3098, allocations: 0 / 417.5 MB, free: 6.75 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005111/0.3103, allocations: 240.6 kB / 417.7 MB, free: 6.504 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003342/0.3106, allocations: 45.97 kB / 417.8 MB, free: 6.461 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005353/0.316, allocations: 2.928 MB / 420.7 MB, free: 3.395 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003789/0.3164, allocations: 0.7479 MB / 421.4 MB, free: 2.621 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001154/0.3165, allocations: 22.3 kB / 421.4 MB, free: 2.598 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001232/0.3166, allocations: 75.41 kB / 421.5 MB, free: 2.523 MB / 334.1 MB Notification: Performance of SimCode: time 6.62e-07/0.3167, allocations: 0 / 421.5 MB, free: 2.523 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03362/0.3503, allocations: 6.34 MB / 427.9 MB, free: 12.36 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.45/11.8, allocations: 10.66 kB / 427.9 MB, free: 12.35 MB / 350.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