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.001313/0.001314, 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.001368/0.001368, allocations: 198 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.392/1.392, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002551/0.002551, allocations: 63.89 kB / 358.3 MB, free: 13.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3333/0.3359, allocations: 50.54 MB / 408.8 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger): time 0.00393/0.3399, allocations: 2.776 MB / 411.6 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001276/0.3412, allocations: 0.705 MB / 412.3 MB, free: 14.03 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001366/0.3413, allocations: 7.938 kB / 412.3 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001479/0.3415, allocations: 39.58 kB / 412.3 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001861/0.3417, allocations: 83.27 kB / 412.4 MB, free: 13.9 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002728/0.342, allocations: 99.81 kB / 412.5 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003934/0.3424, allocations: 350.6 kB / 412.9 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002079/0.3426, allocations: 92.67 kB / 412.9 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001666/0.3428, allocations: 131.5 kB / 413.1 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001882/0.343, allocations: 151.3 kB / 413.2 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.724e-05/0.343, allocations: 28 kB / 413.2 MB, free: 13.06 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.933e-05/0.3431, allocations: 32 kB / 413.3 MB, free: 13.03 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.533e-05/0.3432, allocations: 67.69 kB / 413.3 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001505/0.3433, allocations: 147.3 kB / 413.5 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004004/0.3437, allocations: 321.8 kB / 413.8 MB, free: 12.5 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.242e-06/0.3437, allocations: 4 kB / 413.8 MB, free: 12.5 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.3438, allocations: 0 / 413.8 MB, free: 12.5 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.213e-06/0.3438, allocations: 0 / 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.001277/0.345, allocations: 0.6494 MB / 414.5 MB, free: 11.8 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.171e-05/0.3451, allocations: 12.03 kB / 414.5 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.603e-05/0.3452, allocations: 54.72 kB / 414.5 MB, free: 11.72 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.628e-05/0.3452, allocations: 32.75 kB / 414.6 MB, free: 11.69 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004156/0.3457, allocations: 283.8 kB / 414.8 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.319e-05/0.3457, allocations: 20.75 kB / 414.8 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.661e-05/0.3457, allocations: 20.38 kB / 414.9 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006197/0.3464, allocations: 277.9 kB / 415.1 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.021e-05/0.3464, allocations: 0 / 415.1 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.608e-05/0.3464, allocations: 8 kB / 415.1 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.317e-06/0.3464, allocations: 8 kB / 415.2 MB, free: 11.04 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007299/0.3472, allocations: 245.6 kB / 415.4 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001561/0.3487, allocations: 0.9444 MB / 416.3 MB, free: 9.781 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008137/0.3496, allocations: 234.6 kB / 416.6 MB, free: 9.543 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003157/0.3499, allocations: 100.8 kB / 416.7 MB, free: 9.441 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.681e-05/0.3499, allocations: 7.984 kB / 416.7 MB, free: 9.434 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004509/0.3504, allocations: 181.7 kB / 416.9 MB, free: 9.234 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.333e-06/0.3504, allocations: 0 / 416.9 MB, free: 9.234 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.002198/0.3526, allocations: 0.6513 MB / 417.5 MB, free: 8.555 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.348e-05/0.3527, allocations: 106.8 kB / 417.6 MB, free: 8.426 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003034/0.353, allocations: 270.5 kB / 417.9 MB, free: 8.156 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.058e-05/0.353, allocations: 33.7 kB / 417.9 MB, free: 8.117 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001345/0.3532, allocations: 180.1 kB / 418.1 MB, free: 7.938 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.846e-05/0.3532, allocations: 43.62 kB / 418.1 MB, free: 7.895 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.446e-05/0.3533, allocations: 45.66 kB / 418.2 MB, free: 7.844 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001547/0.3535, allocations: 334.8 kB / 418.5 MB, free: 7.508 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003293/0.3538, allocations: 99.92 kB / 418.6 MB, free: 7.41 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003732/0.3542, allocations: 171.5 kB / 418.8 MB, free: 7.215 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006669/0.3549, allocations: 271.4 kB / 419 MB, free: 6.922 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.3549, allocations: 0 / 419 MB, free: 6.922 MB / 334.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.001161/0.3561, allocations: 435.6 kB / 419.5 MB, free: 6.48 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.192e-05/0.3561, allocations: 37.7 kB / 419.5 MB, free: 6.438 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.541e-06/0.3561, allocations: 0 / 419.5 MB, free: 6.438 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003544/0.3565, allocations: 76.86 kB / 419.6 MB, free: 6.359 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000205/0.3567, allocations: 43.95 kB / 419.6 MB, free: 6.316 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002789/0.3595, allocations: 1.958 MB / 421.6 MB, free: 4.215 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003473/0.3599, allocations: 43.89 kB / 421.6 MB, free: 4.172 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.608e-05/0.3599, allocations: 11.98 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.0001729/0.3601, allocations: 133.8 kB / 421.8 MB, free: 4.02 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.953e-05/0.3601, allocations: 24.02 kB / 421.8 MB, free: 3.996 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.671e-05/0.3602, allocations: 33.89 kB / 421.8 MB, free: 3.961 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.3602, allocations: 3.938 kB / 421.8 MB, free: 3.957 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.623e-06/0.3602, allocations: 128 / 421.8 MB, free: 3.957 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.108e-05/0.3602, allocations: 4 kB / 421.8 MB, free: 3.953 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003114/0.3605, allocations: 305.3 kB / 422.1 MB, free: 3.605 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.3606, allocations: 3.938 kB / 422.1 MB, free: 3.602 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001436/0.3607, allocations: 23.97 kB / 422.1 MB, free: 3.578 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002725/0.361, allocations: 76.73 kB / 422.2 MB, free: 3.5 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.665e-05/0.361, allocations: 4 kB / 422.2 MB, free: 3.496 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002355/0.3634, allocations: 1.75 MB / 424 MB, free: 1.605 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.3634, allocations: 192 / 424 MB, free: 1.605 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001025/0.3644, allocations: 357.5 kB / 424.3 MB, free: 1.234 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.837e-05/0.3645, allocations: 116.8 kB / 424.4 MB, free: 1.102 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.173e-05/0.3646, allocations: 0 / 424.4 MB, free: 1.102 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002393/0.3648, allocations: 35.97 kB / 424.5 MB, free: 1.066 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.056e-05/0.3649, allocations: 19.97 kB / 424.5 MB, free: 1.047 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.444e-05/0.3649, allocations: 4 kB / 424.5 MB, free: 1.043 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002053/0.3651, allocations: 190 kB / 424.7 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of sort global known variables: time 4.71e-07/0.3651, allocations: 0 / 424.7 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003647/0.3655, allocations: 75.89 kB / 424.8 MB, free: 0.7852 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.001414/0.3669, allocations: 0.8935 MB / 425.6 MB, free: 15.86 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000988/0.3679, allocations: 413.7 kB / 426 MB, free: 15.43 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.3679, allocations: 0 / 426 MB, free: 15.43 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004719/0.3684, allocations: 231 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.0003282/0.3688, allocations: 51.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.005099/0.3739, allocations: 2.937 MB / 429.3 MB, free: 12.07 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004522/0.3744, allocations: 0.7479 MB / 430 MB, free: 11.3 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001351/0.3745, allocations: 26.28 kB / 430 MB, free: 11.27 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001278/0.3746, allocations: 71.42 kB / 430.1 MB, free: 11.2 MB / 350.1 MB Notification: Performance of SimCode: time 7.31e-07/0.3746, allocations: 0 / 430.1 MB, free: 11.2 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03328/0.4079, allocations: 6.362 MB / 436.5 MB, free: 5.012 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.72/12.13, allocations: 16 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.1.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