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.001745/0.001745, allocations: 117.6 kB / 17.79 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00216/0.00216, allocations: 200.7 kB / 18.74 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.429/1.429, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001377/0.001378, allocations: 59.91 kB / 358.3 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3104/0.3118, allocations: 50.54 MB / 408.8 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger): time 0.004386/0.3162, allocations: 2.772 MB / 411.6 MB, free: 14.76 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001769/0.318, allocations: 0.7089 MB / 412.3 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003126/0.3183, allocations: 4 kB / 412.3 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002387/0.3186, allocations: 43.56 kB / 412.3 MB, free: 14 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003982/0.319, allocations: 99.25 kB / 412.4 MB, free: 13.9 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000404/0.3195, allocations: 87.83 kB / 412.5 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000531/0.32, allocations: 362.5 kB / 412.9 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002257/0.3202, allocations: 84.7 kB / 412.9 MB, free: 13.37 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002526/0.3205, allocations: 131.5 kB / 413.1 MB, free: 13.24 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002409/0.3208, allocations: 155.3 kB / 413.2 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.381e-05/0.3208, allocations: 32 kB / 413.3 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.94e-05/0.3209, allocations: 28 kB / 413.3 MB, free: 13.03 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.846e-05/0.321, allocations: 63.77 kB / 413.3 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001651/0.3211, allocations: 147.2 kB / 413.5 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004221/0.3216, allocations: 321.8 kB / 413.8 MB, free: 12.51 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.3216, allocations: 4 kB / 413.8 MB, free: 12.5 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.456e-06/0.3216, allocations: 0 / 413.8 MB, free: 12.5 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.185e-05/0.3216, allocations: 3.938 kB / 413.8 MB, free: 12.5 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.001534/0.3232, allocations: 0.6493 MB / 414.5 MB, free: 11.8 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.843e-05/0.3232, allocations: 12.03 kB / 414.5 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.533e-05/0.3233, allocations: 54.73 kB / 414.5 MB, free: 11.72 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001192/0.3235, allocations: 36.75 kB / 414.6 MB, free: 11.69 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005909/0.324, allocations: 279.8 kB / 414.8 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.696e-05/0.3241, allocations: 12.81 kB / 414.8 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.645e-05/0.3241, allocations: 20.38 kB / 414.9 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008053/0.325, allocations: 285.8 kB / 415.1 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.976e-05/0.325, allocations: 3.984 kB / 415.1 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.065e-05/0.325, allocations: 11.98 kB / 415.2 MB, free: 11.04 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.093e-05/0.3251, allocations: 4 kB / 415.2 MB, free: 11.04 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008254/0.3259, allocations: 241.6 kB / 415.4 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001947/0.3279, allocations: 0.9367 MB / 416.3 MB, free: 9.789 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008361/0.3287, allocations: 238.5 kB / 416.6 MB, free: 9.547 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003362/0.329, allocations: 105 kB / 416.7 MB, free: 9.441 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.178e-05/0.3291, allocations: 7.938 kB / 416.7 MB, free: 9.434 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004763/0.3296, allocations: 189.3 kB / 416.9 MB, free: 9.23 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.493e-06/0.3296, allocations: 3.938 kB / 416.9 MB, free: 9.227 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.002336/0.3319, allocations: 0.6513 MB / 417.5 MB, free: 8.547 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.878e-05/0.332, allocations: 110.8 kB / 417.6 MB, free: 8.414 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003006/0.3323, allocations: 266.5 kB / 417.9 MB, free: 8.148 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.258e-05/0.3324, allocations: 29.69 kB / 417.9 MB, free: 8.113 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001221/0.3325, allocations: 176.2 kB / 418.1 MB, free: 7.938 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.32e-05/0.3326, allocations: 39.62 kB / 418.1 MB, free: 7.898 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.571e-05/0.3327, allocations: 49.66 kB / 418.2 MB, free: 7.844 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000128/0.3328, allocations: 338.8 kB / 418.5 MB, free: 7.504 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003431/0.3332, allocations: 95.92 kB / 418.6 MB, free: 7.41 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003679/0.3335, allocations: 164.5 kB / 418.8 MB, free: 7.219 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006823/0.3342, allocations: 275.2 kB / 419 MB, free: 6.922 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.3342, allocations: 0 / 419 MB, free: 6.922 MB / 334.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.001221/0.3355, allocations: 435.7 kB / 419.5 MB, free: 6.48 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.365e-05/0.3355, allocations: 33.7 kB / 419.5 MB, free: 6.441 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.3355, allocations: 0 / 419.5 MB, free: 6.441 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003972/0.3359, allocations: 80.8 kB / 419.6 MB, free: 6.359 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001928/0.3361, allocations: 39.94 kB / 419.6 MB, free: 6.32 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002697/0.3388, allocations: 1.951 MB / 421.6 MB, free: 4.227 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004619/0.3393, allocations: 55.84 kB / 421.6 MB, free: 4.172 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.596e-05/0.3394, allocations: 12.12 kB / 421.6 MB, free: 4.16 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.0001572/0.3395, allocations: 141.8 kB / 421.8 MB, free: 4.012 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.668e-05/0.3396, allocations: 27.8 kB / 421.8 MB, free: 3.984 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.109e-05/0.3396, allocations: 29.83 kB / 421.8 MB, free: 3.953 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-06/0.3397, allocations: 0 / 421.8 MB, free: 3.953 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.137e-06/0.3397, allocations: 4 kB / 421.8 MB, free: 3.949 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.3397, allocations: 3.984 kB / 421.8 MB, free: 3.945 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002845/0.34, allocations: 293.4 kB / 422.1 MB, free: 3.609 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.424e-06/0.34, allocations: 4 kB / 422.1 MB, free: 3.605 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001386/0.3401, allocations: 23.97 kB / 422.1 MB, free: 3.582 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002625/0.3404, allocations: 76.73 kB / 422.2 MB, free: 3.504 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.449e-05/0.3404, allocations: 11.94 kB / 422.2 MB, free: 3.492 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002138/0.3426, allocations: 1.75 MB / 424 MB, free: 1.602 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.3426, allocations: 3.938 kB / 424 MB, free: 1.598 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001043/0.3436, allocations: 365.6 kB / 424.3 MB, free: 1.219 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.052e-05/0.3437, allocations: 100.8 kB / 424.4 MB, free: 1.102 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.278e-05/0.3438, allocations: 8 kB / 424.4 MB, free: 1.094 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002392/0.344, allocations: 31.89 kB / 424.5 MB, free: 1.062 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.954e-05/0.3441, allocations: 19.97 kB / 424.5 MB, free: 1.043 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.412e-05/0.3441, allocations: 8 kB / 424.5 MB, free: 1.035 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001822/0.3443, allocations: 190 kB / 424.7 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3443, allocations: 4 kB / 424.7 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003716/0.3447, allocations: 67.89 kB / 424.8 MB, free: 0.7812 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.001486/0.3462, allocations: 0.8936 MB / 425.6 MB, free: 15.86 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001046/0.3472, allocations: 421.9 kB / 426.1 MB, free: 15.42 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.3473, allocations: 0 / 426.1 MB, free: 15.42 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004935/0.3478, allocations: 218.9 kB / 426.3 MB, free: 15.19 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003329/0.3481, allocations: 52.45 kB / 426.3 MB, free: 15.14 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004961/0.3531, allocations: 2.936 MB / 429.3 MB, free: 12.07 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000281/0.3534, allocations: 0.7479 MB / 430 MB, free: 11.3 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001045/0.3535, allocations: 22.3 kB / 430 MB, free: 11.27 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000117/0.3536, allocations: 79.41 kB / 430.1 MB, free: 11.2 MB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3536, allocations: 0 / 430.1 MB, free: 11.2 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03602/0.3896, allocations: 6.367 MB / 436.5 MB, free: 5.004 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.88/11.27, allocations: 7.938 kB / 436.5 MB, free: 4.996 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