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.001468/0.001468, allocations: 112.1 kB / 16.62 MB, free: 6.812 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.001518/0.001519, allocations: 190 kB / 17.55 MB, free: 5.934 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.488/1.488, allocations: 222.9 MB / 241.2 MB, free: 15.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002126/0.002126, allocations: 50.89 kB / 300.3 MB, free: 6.07 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1644/0.1665, allocations: 49.45 MB / 349.7 MB, free: 4.613 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger): time 0.005192/0.1718, allocations: 2.795 MB / 352.5 MB, free: 1.797 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001875/0.1737, allocations: 0.6662 MB / 353.2 MB, free: 1.129 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004074/0.1741, allocations: 4 kB / 353.2 MB, free: 1.125 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000267/0.1744, allocations: 35.75 kB / 353.2 MB, free: 1.09 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000409/0.1749, allocations: 83.39 kB / 353.3 MB, free: 1.008 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004273/0.1753, allocations: 75.92 kB / 353.4 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005706/0.1759, allocations: 358.5 kB / 353.7 MB, free: 0.582 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002943/0.1762, allocations: 84.56 kB / 353.8 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003329/0.1765, allocations: 135.4 kB / 353.9 MB, free: 372 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000273/0.1768, allocations: 151.3 kB / 354.1 MB, free: 220 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.228e-05/0.1769, allocations: 28 kB / 354.1 MB, free: 192 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.476e-05/0.177, allocations: 36 kB / 354.1 MB, free: 156 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.758e-05/0.177, allocations: 55.81 kB / 354.2 MB, free: 100 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002667/0.1773, allocations: 147.3 kB / 354.3 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004597/0.1778, allocations: 323 kB / 354.6 MB, free: 15.64 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.1778, allocations: 0 / 354.6 MB, free: 15.64 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1778, allocations: 0 / 354.6 MB, free: 15.64 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.173e-05/0.1778, allocations: 4 kB / 354.6 MB, free: 15.63 MB / 302.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.001584/0.1794, allocations: 0.6301 MB / 355.3 MB, free: 14.95 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.131e-05/0.1795, allocations: 15.97 kB / 355.3 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001006/0.1796, allocations: 54.67 kB / 355.3 MB, free: 14.87 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001316/0.1797, allocations: 32.56 kB / 355.4 MB, free: 14.84 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000523/0.1803, allocations: 279.6 kB / 355.7 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.696e-05/0.1803, allocations: 24.8 kB / 355.7 MB, free: 14.5 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.737e-05/0.1804, allocations: 20.38 kB / 355.7 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000782/0.1811, allocations: 273.7 kB / 356 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.745e-05/0.1812, allocations: 4 kB / 356 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.038e-05/0.1812, allocations: 4 kB / 356 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.07e-05/0.1812, allocations: 8 kB / 356 MB, free: 14.19 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008559/0.1821, allocations: 245.5 kB / 356.2 MB, free: 13.95 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00194/0.1841, allocations: 0.9481 MB / 357.2 MB, free: 12.92 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008873/0.185, allocations: 250.5 kB / 357.4 MB, free: 12.67 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003341/0.1853, allocations: 96.8 kB / 357.5 MB, free: 12.57 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.223e-05/0.1853, allocations: 7.922 kB / 357.5 MB, free: 12.56 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006244/0.186, allocations: 173.9 kB / 357.7 MB, free: 12.37 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 3.767e-06/0.186, allocations: 0 / 357.7 MB, free: 12.37 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.002555/0.1886, allocations: 0.658 MB / 358.3 MB, free: 11.69 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002006/0.1888, allocations: 102.8 kB / 358.4 MB, free: 11.56 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004605/0.1892, allocations: 278.3 kB / 358.7 MB, free: 11.29 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.666e-05/0.1893, allocations: 37.64 kB / 358.7 MB, free: 11.25 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003095/0.1896, allocations: 172 kB / 358.9 MB, free: 11.07 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.345e-05/0.1897, allocations: 43.31 kB / 359 MB, free: 11.03 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001404/0.1898, allocations: 45.92 kB / 359 MB, free: 10.98 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000273/0.1901, allocations: 330.8 kB / 359.3 MB, free: 10.65 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003638/0.1905, allocations: 95.86 kB / 359.4 MB, free: 10.55 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004271/0.1909, allocations: 172.4 kB / 359.6 MB, free: 10.36 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007452/0.1917, allocations: 270.8 kB / 359.9 MB, free: 10.06 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.004e-05/0.1917, allocations: 4 kB / 359.9 MB, free: 10.06 MB / 302.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.001323/0.193, allocations: 435.6 kB / 360.3 MB, free: 9.617 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.112e-05/0.1931, allocations: 29.7 kB / 360.3 MB, free: 9.582 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.292e-05/0.1931, allocations: 7.984 kB / 360.3 MB, free: 9.574 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004933/0.1936, allocations: 80.86 kB / 360.4 MB, free: 9.492 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002119/0.1938, allocations: 39.91 kB / 360.4 MB, free: 9.453 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003048/0.1969, allocations: 1.954 MB / 362.4 MB, free: 7.355 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003926/0.1973, allocations: 51.78 kB / 362.4 MB, free: 7.305 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.518e-05/0.1974, allocations: 8 kB / 362.5 MB, free: 7.297 MB / 302.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.0003084/0.1977, allocations: 137.8 kB / 362.6 MB, free: 7.152 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.163e-05/0.1978, allocations: 31.72 kB / 362.6 MB, free: 7.121 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.562e-05/0.1978, allocations: 21.83 kB / 362.6 MB, free: 7.098 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/0.1978, allocations: 4 kB / 362.6 MB, free: 7.094 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.1978, allocations: 0 / 362.6 MB, free: 7.094 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.598e-06/0.1979, allocations: 128 / 362.6 MB, free: 7.094 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004283/0.1983, allocations: 305.3 kB / 362.9 MB, free: 6.746 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.01e-06/0.1983, allocations: 0 / 362.9 MB, free: 6.746 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001405/0.1985, allocations: 15.98 kB / 363 MB, free: 6.73 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003123/0.1988, allocations: 84.73 kB / 363 MB, free: 6.645 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.921e-05/0.1988, allocations: 0 / 363 MB, free: 6.645 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002745/0.2016, allocations: 1.758 MB / 364.8 MB, free: 4.75 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.649e-06/0.2016, allocations: 3.984 kB / 364.8 MB, free: 4.746 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001095/0.2027, allocations: 353.6 kB / 365.1 MB, free: 4.379 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001211/0.2028, allocations: 104.8 kB / 365.2 MB, free: 4.258 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.424e-05/0.2029, allocations: 12 kB / 365.3 MB, free: 4.246 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002487/0.2031, allocations: 35.95 kB / 365.3 MB, free: 4.211 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.392e-05/0.2032, allocations: 15.98 kB / 365.3 MB, free: 4.195 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.621e-05/0.2033, allocations: 4 kB / 365.3 MB, free: 4.191 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002482/0.2035, allocations: 197.9 kB / 365.5 MB, free: 4 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.2035, allocations: 0 / 365.5 MB, free: 4 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000399/0.2039, allocations: 63.91 kB / 365.6 MB, free: 3.938 MB / 302.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.001735/0.2057, allocations: 0.9095 MB / 366.5 MB, free: 2.992 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001212/0.2069, allocations: 421.8 kB / 366.9 MB, free: 2.555 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.589e-06/0.2069, allocations: 0 / 366.9 MB, free: 2.555 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005148/0.2074, allocations: 230.4 kB / 367.1 MB, free: 2.32 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003804/0.2078, allocations: 55.56 kB / 367.2 MB, free: 2.27 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2592/0.4671, allocations: 2.987 MB / 370.2 MB, free: 24.82 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005406/0.4677, allocations: 0.7453 MB / 370.9 MB, free: 24.13 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002753/0.468, allocations: 24.98 kB / 370.9 MB, free: 24.12 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002328/0.4683, allocations: 75.11 kB / 371 MB, free: 24.12 MB / 302.1 MB Notification: Performance of SimCode: time 2.455e-06/0.4683, allocations: 0 / 371 MB, free: 24.12 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03531/0.5036, allocations: 6.045 MB / 377 MB, free: 23.74 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001929/0.5038, allocations: 247.4 kB / 377.3 MB, free: 23.48 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.255/2.759, allocations: 0 / 377.3 MB, free: 23.48 MB / 302.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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) "" Variables in the reference:time,opAmp.out.v,opAmp.out.i Variables in the result:R1,R2,Vin,Vns,Vps,f,ground.p.i,ground.p.v,k,opAmp.V0,opAmp.Vns,opAmp.Vps,opAmp.homotopyType,opAmp.i_s,opAmp.in_n.i,opAmp.in_n.v,opAmp.in_p.i,opAmp.in_p.v,opAmp.out.i,opAmp.out.v,opAmp.p_in,opAmp.p_out,opAmp.p_s,opAmp.strict,opAmp.useSupply,opAmp.v_in,opAmp.v_out,opAmp.vns,opAmp.vps,r1.LossPower,r1.R,r1.R_actual,r1.T,r1.T_heatPort,r1.T_ref,r1.alpha,r1.i,r1.n.i,r1.n.v,r1.p.i,r1.p.v,r1.useHeatPort,r1.v,r2.LossPower,r2.R,r2.R_actual,r2.T,r2.T_heatPort,r2.T_ref,r2.alpha,r2.i,r2.n.i,r2.n.v,r2.p.i,r2.p.v,r2.useHeatPort,r2.v,time,vHys,vIn.V,vIn.falling,vIn.i,vIn.n.i,vIn.n.v,vIn.nperiod,vIn.offset,vIn.p.i,vIn.p.v,vIn.period,vIn.rising,vIn.signalSource.amplitude,vIn.signalSource.falling,vIn.signalSource.nperiod,vIn.signalSource.offset,vIn.signalSource.period,vIn.signalSource.rising,vIn.signalSource.startTime,vIn.signalSource.width,vIn.signalSource.y,vIn.startTime,vIn.v,vIn.width,vOut.n.i,vOut.n.v,vOut.p.i,vOut.p.v,vOut.v