Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001458/0.001459, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001834/0.001834, allocations: 197.2 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.564/1.564, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001322/0.001322, allocations: 63.91 kB / 358.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2726/0.2739, allocations: 50.54 MB / 408.8 MB, free: 1.492 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger): time 0.004125/0.2781, allocations: 2.78 MB / 411.6 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001493/0.2796, allocations: 0.705 MB / 412.3 MB, free: 13.99 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002548/0.2799, allocations: 8 kB / 412.3 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001993/0.2801, allocations: 43.56 kB / 412.3 MB, free: 13.94 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003041/0.2804, allocations: 91.25 kB / 412.4 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003506/0.2808, allocations: 95.81 kB / 412.5 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004977/0.2813, allocations: 358.5 kB / 412.9 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002295/0.2816, allocations: 84.7 kB / 412.9 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002294/0.2818, allocations: 139.4 kB / 413.1 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002341/0.282, allocations: 147.3 kB / 413.2 MB, free: 13.04 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.684e-05/0.2821, allocations: 28 kB / 413.3 MB, free: 13.01 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.469e-05/0.2822, allocations: 28 kB / 413.3 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.236e-05/0.2823, allocations: 67.75 kB / 413.3 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001556/0.2824, allocations: 143.3 kB / 413.5 MB, free: 12.77 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004088/0.2828, allocations: 329.8 kB / 413.8 MB, free: 12.45 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.2829, allocations: 0 / 413.8 MB, free: 12.45 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.2829, allocations: 4 kB / 413.8 MB, free: 12.45 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.091e-05/0.2829, allocations: 0 / 413.8 MB, free: 12.45 MB / 334.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.00131/0.2842, allocations: 0.6532 MB / 414.5 MB, free: 11.74 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.425e-05/0.2842, allocations: 8.031 kB / 414.5 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.034e-05/0.2843, allocations: 54.73 kB / 414.5 MB, free: 11.67 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.663e-05/0.2844, allocations: 32.75 kB / 414.6 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004238/0.2848, allocations: 275.8 kB / 414.8 MB, free: 11.33 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.066e-05/0.2849, allocations: 20.8 kB / 414.8 MB, free: 11.31 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.677e-05/0.2849, allocations: 20.38 kB / 414.9 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006163/0.2856, allocations: 277.9 kB / 415.1 MB, free: 11.01 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.2856, allocations: 7.938 kB / 415.1 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.315e-05/0.2856, allocations: 4 kB / 415.2 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.234e-06/0.2856, allocations: 4 kB / 415.2 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007149/0.2864, allocations: 241.6 kB / 415.4 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001573/0.2879, allocations: 0.9445 MB / 416.3 MB, free: 9.742 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008101/0.2888, allocations: 254.5 kB / 416.6 MB, free: 9.484 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003167/0.2891, allocations: 101 kB / 416.7 MB, free: 9.383 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.963e-05/0.2891, allocations: 3.938 kB / 416.7 MB, free: 9.379 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004565/0.2896, allocations: 181.3 kB / 416.9 MB, free: 9.184 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.863e-06/0.2896, allocations: 0 / 416.9 MB, free: 9.184 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.002205/0.2918, allocations: 0.6591 MB / 417.5 MB, free: 8.496 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.99e-05/0.2919, allocations: 110.8 kB / 417.6 MB, free: 8.363 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002886/0.2922, allocations: 266.5 kB / 417.9 MB, free: 8.098 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.076e-05/0.2922, allocations: 29.7 kB / 417.9 MB, free: 8.062 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001175/0.2924, allocations: 180.2 kB / 418.1 MB, free: 7.883 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.49e-05/0.2924, allocations: 51.61 kB / 418.1 MB, free: 7.832 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.223e-05/0.2925, allocations: 45.66 kB / 418.2 MB, free: 7.781 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001154/0.2926, allocations: 326.8 kB / 418.5 MB, free: 7.453 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003344/0.293, allocations: 99.91 kB / 418.6 MB, free: 7.355 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000353/0.2933, allocations: 168.5 kB / 418.8 MB, free: 7.16 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006306/0.294, allocations: 267.2 kB / 419 MB, free: 6.871 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.125e-06/0.294, allocations: 4 kB / 419 MB, free: 6.867 MB / 334.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.001142/0.2951, allocations: 435.7 kB / 419.5 MB, free: 6.426 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.804e-05/0.2952, allocations: 29.7 kB / 419.5 MB, free: 6.391 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.2952, allocations: 4 kB / 419.5 MB, free: 6.387 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003615/0.2956, allocations: 80.86 kB / 419.6 MB, free: 6.305 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001844/0.2958, allocations: 39.91 kB / 419.6 MB, free: 6.266 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002658/0.2984, allocations: 1.955 MB / 421.6 MB, free: 4.168 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003015/0.2988, allocations: 47.92 kB / 421.6 MB, free: 4.121 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.248e-05/0.2988, allocations: 12 kB / 421.6 MB, free: 4.109 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.0001753/0.299, allocations: 133.8 kB / 421.8 MB, free: 3.969 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.521e-05/0.2991, allocations: 31.78 kB / 421.8 MB, free: 3.938 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.864e-05/0.2991, allocations: 21.84 kB / 421.8 MB, free: 3.914 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.2992, allocations: 8 kB / 421.8 MB, free: 3.906 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.928e-06/0.2992, allocations: 3.984 kB / 421.8 MB, free: 3.902 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.92e-06/0.2992, allocations: 4.031 kB / 421.8 MB, free: 3.898 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002785/0.2995, allocations: 293.4 kB / 422.1 MB, free: 3.562 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.2995, allocations: 0 / 422.1 MB, free: 3.562 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001328/0.2996, allocations: 19.97 kB / 422.1 MB, free: 3.543 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002636/0.2999, allocations: 84.73 kB / 422.2 MB, free: 3.457 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.558e-05/0.2999, allocations: 0 / 422.2 MB, free: 3.457 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002129/0.302, allocations: 1.754 MB / 424 MB, free: 1.562 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.3021, allocations: 3.938 kB / 424 MB, free: 1.559 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000978/0.303, allocations: 365.6 kB / 424.3 MB, free: 1.18 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.02e-05/0.3031, allocations: 104.8 kB / 424.4 MB, free: 1.059 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.866e-05/0.3032, allocations: 7.984 kB / 424.4 MB, free: 1.051 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002356/0.3034, allocations: 35.91 kB / 424.5 MB, free: 1.016 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.938e-05/0.3035, allocations: 27.91 kB / 424.5 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.399e-05/0.3035, allocations: 4 kB / 424.5 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001714/0.3037, allocations: 186 kB / 424.7 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3037, allocations: 0 / 424.7 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003556/0.3041, allocations: 75.88 kB / 424.8 MB, free: 0.7305 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.001337/0.3054, allocations: 0.8902 MB / 425.7 MB, free: 15.8 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009382/0.3064, allocations: 417.4 kB / 426.1 MB, free: 15.38 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.3064, allocations: 0 / 426.1 MB, free: 15.38 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004603/0.3069, allocations: 231 kB / 426.3 MB, free: 15.14 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000326/0.3072, allocations: 40.53 kB / 426.3 MB, free: 15.1 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004879/0.3121, allocations: 2.931 MB / 429.3 MB, free: 12.03 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003029/0.3124, allocations: 0.7518 MB / 430 MB, free: 11.25 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.86e-05/0.3125, allocations: 26.27 kB / 430 MB, free: 11.23 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001175/0.3126, allocations: 71.41 kB / 430.1 MB, free: 11.16 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3126, allocations: 8 kB / 430.1 MB, free: 11.15 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02813/0.3408, allocations: 6.368 MB / 436.5 MB, free: 4.957 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.08/11.42, allocations: 6.656 kB / 436.5 MB, free: 4.953 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches