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.001207/0.001206, allocations: 108.3 kB / 17.06 MB, free: 5.957 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.001234/0.001234, allocations: 200 kB / 18.01 MB, free: 5.039 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.29/1.29, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001119/0.001119, allocations: 47.92 kB / 350.8 MB, free: 3.699 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2885/0.2897, allocations: 49.44 MB / 400.3 MB, free: 8.395 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger): time 0.004301/0.294, allocations: 2.753 MB / 403 MB, free: 6.047 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001297/0.2954, allocations: 0.6661 MB / 403.7 MB, free: 5.375 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001627/0.2955, allocations: 4 kB / 403.7 MB, free: 5.371 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000186/0.2958, allocations: 47.56 kB / 403.7 MB, free: 5.324 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002082/0.296, allocations: 99.19 kB / 403.8 MB, free: 5.227 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002982/0.2963, allocations: 91.77 kB / 403.9 MB, free: 5.137 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003896/0.2967, allocations: 358.5 kB / 404.3 MB, free: 4.785 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00019/0.2969, allocations: 80.73 kB / 404.4 MB, free: 4.703 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001738/0.2971, allocations: 135.5 kB / 404.5 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001842/0.2973, allocations: 143.4 kB / 404.6 MB, free: 4.43 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.87e-05/0.2973, allocations: 35.94 kB / 404.7 MB, free: 4.395 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.571e-05/0.2974, allocations: 28 kB / 404.7 MB, free: 4.367 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.311e-05/0.2975, allocations: 63.77 kB / 404.8 MB, free: 4.305 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001699/0.2976, allocations: 147.2 kB / 404.9 MB, free: 4.16 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004093/0.298, allocations: 329 kB / 405.2 MB, free: 3.844 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.79e-06/0.2981, allocations: 0 / 405.2 MB, free: 3.844 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.627e-06/0.2981, allocations: 4 kB / 405.2 MB, free: 3.84 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.873e-06/0.2981, allocations: 0 / 405.2 MB, free: 3.84 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.001372/0.2995, allocations: 0.6454 MB / 405.9 MB, free: 3.141 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.419e-05/0.2995, allocations: 16.03 kB / 405.9 MB, free: 3.125 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.777e-05/0.2996, allocations: 50.73 kB / 405.9 MB, free: 3.066 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.011e-05/0.2997, allocations: 32.75 kB / 406 MB, free: 3.035 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004185/0.3001, allocations: 279.9 kB / 406.2 MB, free: 2.723 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.185e-05/0.3001, allocations: 16.81 kB / 406.3 MB, free: 2.707 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.427e-05/0.3002, allocations: 16.38 kB / 406.3 MB, free: 2.691 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006386/0.3008, allocations: 285.8 kB / 406.6 MB, free: 2.398 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.06e-05/0.3008, allocations: 0 / 406.6 MB, free: 2.398 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.944e-05/0.3009, allocations: 12 kB / 406.6 MB, free: 2.387 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.195e-06/0.3009, allocations: 4 kB / 406.6 MB, free: 2.383 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007412/0.3016, allocations: 249.5 kB / 406.8 MB, free: 2.137 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001527/0.3032, allocations: 0.9521 MB / 407.8 MB, free: 1.113 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008165/0.304, allocations: 238.6 kB / 408 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003157/0.3043, allocations: 104.8 kB / 408.1 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.079e-05/0.3044, allocations: 0 / 408.1 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004603/0.3048, allocations: 181.7 kB / 408.3 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 1.303e-06/0.3048, allocations: 0 / 408.3 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.002273/0.3071, allocations: 0.6542 MB / 408.9 MB, free: 15.88 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.168e-05/0.3072, allocations: 106.8 kB / 409 MB, free: 15.75 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002676/0.3075, allocations: 270.5 kB / 409.3 MB, free: 15.48 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.686e-05/0.3075, allocations: 29.7 kB / 409.3 MB, free: 15.45 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001303/0.3077, allocations: 176.1 kB / 409.5 MB, free: 15.27 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.084e-05/0.3077, allocations: 47.86 kB / 409.5 MB, free: 15.23 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.056e-05/0.3078, allocations: 45.7 kB / 409.6 MB, free: 15.18 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001237/0.3079, allocations: 334.8 kB / 409.9 MB, free: 14.84 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003318/0.3083, allocations: 95.91 kB / 410 MB, free: 14.75 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003748/0.3086, allocations: 176.1 kB / 410.2 MB, free: 14.55 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006565/0.3093, allocations: 264.4 kB / 410.4 MB, free: 14.25 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.836e-06/0.3093, allocations: 0 / 410.4 MB, free: 14.25 MB / 334.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.001169/0.3105, allocations: 442.3 kB / 410.9 MB, free: 13.81 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.637e-05/0.3105, allocations: 33.7 kB / 410.9 MB, free: 13.77 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.378e-06/0.3106, allocations: 4 kB / 410.9 MB, free: 13.77 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003651/0.3109, allocations: 76.86 kB / 411 MB, free: 13.69 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001915/0.3111, allocations: 39.97 kB / 411 MB, free: 13.65 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002506/0.3137, allocations: 1.962 MB / 413 MB, free: 11.55 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003233/0.314, allocations: 51.86 kB / 413 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.41e-05/0.314, allocations: 12 kB / 413.1 MB, free: 11.49 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.0001532/0.3142, allocations: 129.8 kB / 413.2 MB, free: 11.35 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.855e-05/0.3142, allocations: 27.8 kB / 413.2 MB, free: 11.32 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.734e-05/0.3143, allocations: 29.86 kB / 413.2 MB, free: 11.29 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.477e-06/0.3143, allocations: 4 kB / 413.2 MB, free: 11.29 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.084e-06/0.3143, allocations: 0 / 413.2 MB, free: 11.29 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.3143, allocations: 0 / 413.2 MB, free: 11.29 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002667/0.3146, allocations: 293.4 kB / 413.5 MB, free: 10.95 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.3146, allocations: 0 / 413.5 MB, free: 10.95 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001381/0.3147, allocations: 31.91 kB / 413.6 MB, free: 10.92 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002763/0.315, allocations: 76.75 kB / 413.6 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.75e-05/0.3151, allocations: 7.984 kB / 413.6 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00213/0.3172, allocations: 1.762 MB / 415.4 MB, free: 8.934 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.3172, allocations: 0 / 415.4 MB, free: 8.934 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00101/0.3182, allocations: 353.6 kB / 415.7 MB, free: 8.566 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.387e-05/0.3183, allocations: 108.8 kB / 415.9 MB, free: 8.441 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.609e-05/0.3183, allocations: 4 kB / 415.9 MB, free: 8.438 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002481/0.3186, allocations: 35.95 kB / 415.9 MB, free: 8.402 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.117e-05/0.3187, allocations: 15.98 kB / 415.9 MB, free: 8.387 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.191e-05/0.3187, allocations: 7.984 kB / 415.9 MB, free: 8.379 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001819/0.3189, allocations: 190 kB / 416.1 MB, free: 8.191 MB / 334.1 MB Notification: Performance of sort global known variables: time 5.61e-07/0.3189, allocations: 0 / 416.1 MB, free: 8.191 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003607/0.3193, allocations: 71.89 kB / 416.2 MB, free: 8.121 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.001396/0.3207, allocations: 0.8996 MB / 417.1 MB, free: 7.188 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009431/0.3216, allocations: 413.1 kB / 417.5 MB, free: 6.762 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.3216, allocations: 0 / 417.5 MB, free: 6.762 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004485/0.3221, allocations: 244.7 kB / 417.7 MB, free: 6.512 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003263/0.3224, allocations: 48.48 kB / 417.8 MB, free: 6.465 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004792/0.3272, allocations: 2.921 MB / 420.7 MB, free: 3.406 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002785/0.3275, allocations: 0.748 MB / 421.4 MB, free: 2.633 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001256/0.3277, allocations: 26.28 kB / 421.5 MB, free: 2.605 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001142/0.3278, allocations: 79.41 kB / 421.5 MB, free: 2.527 MB / 334.1 MB Notification: Performance of SimCode: time 7.32e-07/0.3278, allocations: 0 / 421.5 MB, free: 2.527 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03867/0.3665, allocations: 6.33 MB / 427.9 MB, free: 12.37 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.97/11.34, allocations: 6.75 kB / 427.9 MB, free: 12.36 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