Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.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: translateModel(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001695/0.001695, allocations: 110.1 kB / 17.17 MB, free: 6.344 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.002191/0.002191, allocations: 198.9 kB / 18.08 MB, free: 5.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.36/2.36, allocations: 222.9 MB / 241.8 MB, free: 15.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00202/0.00202, allocations: 48.11 kB / 300.6 MB, free: 6.301 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1669/0.1689, allocations: 49.46 MB / 350.1 MB, free: 4.828 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.008295/0.1773, allocations: 2.787 MB / 352.9 MB, free: 2.02 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002641/0.18, allocations: 0.6817 MB / 353.5 MB, free: 1.332 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003882/0.1804, allocations: 4 kB / 353.6 MB, free: 1.328 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003207/0.1809, allocations: 35.75 kB / 353.6 MB, free: 1.293 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005381/0.1814, allocations: 75.39 kB / 353.7 MB, free: 1.219 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000533/0.182, allocations: 79.91 kB / 353.7 MB, free: 1.141 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007578/0.1828, allocations: 334.6 kB / 354.1 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003028/0.1831, allocations: 80.98 kB / 354.1 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000327/0.1835, allocations: 119.4 kB / 354.3 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003748/0.1839, allocations: 147.3 kB / 354.4 MB, free: 480 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000105/0.184, allocations: 16 kB / 354.4 MB, free: 464 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001104/0.1841, allocations: 20 kB / 354.4 MB, free: 444 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001316/0.1843, allocations: 51.81 kB / 354.5 MB, free: 392 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002959/0.1846, allocations: 131.3 kB / 354.6 MB, free: 260 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004259/0.185, allocations: 243.7 kB / 354.9 MB, free: 16 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.873e-06/0.185, allocations: 7.938 kB / 354.9 MB, free: 8 kB / 286.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.1851, allocations: 0 / 354.9 MB, free: 8 kB / 286.1 MB Notification: Performance of Transformations before backend: time 1.53e-05/0.1851, allocations: 0 / 354.9 MB, free: 8 kB / 286.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.002455/0.1876, allocations: 0.6418 MB / 355.5 MB, free: 15.31 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.619e-05/0.1876, allocations: 8.031 kB / 355.5 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001491/0.1878, allocations: 32.56 kB / 355.5 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006246/0.1884, allocations: 279.3 kB / 355.8 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.707e-05/0.1885, allocations: 16.81 kB / 355.8 MB, free: 14.95 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.605e-05/0.1886, allocations: 20.31 kB / 355.9 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001185/0.1898, allocations: 282.1 kB / 356.1 MB, free: 14.64 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.813e-05/0.1898, allocations: 0 / 356.1 MB, free: 14.64 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001/0.1899, allocations: 15.98 kB / 356.1 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.439e-05/0.19, allocations: 4 kB / 356.1 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001523/0.1915, allocations: 253.5 kB / 356.4 MB, free: 14.37 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003045/0.1946, allocations: 0.9364 MB / 357.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001605/0.1962, allocations: 242.5 kB / 357.6 MB, free: 13.11 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006652/0.1969, allocations: 108.8 kB / 357.7 MB, free: 13 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.454e-05/0.197, allocations: 0 / 357.7 MB, free: 13 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009254/0.1979, allocations: 177.3 kB / 357.8 MB, free: 12.81 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 2.796e-06/0.1979, allocations: 3.938 kB / 357.9 MB, free: 12.81 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.004612/0.2026, allocations: 0.6551 MB / 358.5 MB, free: 12.12 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001189/0.2027, allocations: 106.8 kB / 358.6 MB, free: 12 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005938/0.2033, allocations: 278.5 kB / 358.9 MB, free: 11.72 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.657e-05/0.2034, allocations: 25.7 kB / 358.9 MB, free: 11.69 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002271/0.2036, allocations: 179.8 kB / 359.1 MB, free: 11.51 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.778e-05/0.2038, allocations: 47.38 kB / 359.1 MB, free: 11.46 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001658/0.2039, allocations: 49.61 kB / 359.2 MB, free: 11.41 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000194/0.2042, allocations: 338.8 kB / 359.5 MB, free: 11.07 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006869/0.2049, allocations: 99.92 kB / 359.6 MB, free: 10.97 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007599/0.2056, allocations: 178.2 kB / 359.8 MB, free: 10.76 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001444/0.2071, allocations: 288.6 kB / 360.1 MB, free: 10.45 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.172e-06/0.2071, allocations: 0 / 360.1 MB, free: 10.45 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.002305/0.2095, allocations: 443.6 kB / 360.5 MB, free: 9.996 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.333e-05/0.2095, allocations: 33.7 kB / 360.5 MB, free: 9.957 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.209e-05/0.2096, allocations: 0 / 360.5 MB, free: 9.957 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006817/0.2103, allocations: 84.86 kB / 360.6 MB, free: 9.871 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003813/0.2107, allocations: 39.91 kB / 360.7 MB, free: 9.832 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004785/0.2155, allocations: 1.814 MB / 362.5 MB, free: 7.879 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007273/0.2163, allocations: 47.8 kB / 362.5 MB, free: 7.832 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.726e-05/0.2164, allocations: 12 kB / 362.5 MB, free: 7.82 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (21): * Single equations (assignments): 19 * 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.0003361/0.2167, allocations: 137.8 kB / 362.7 MB, free: 7.676 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001032/0.2168, allocations: 27.78 kB / 362.7 MB, free: 7.648 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.948e-05/0.2169, allocations: 29.83 kB / 362.7 MB, free: 7.617 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.507e-06/0.217, allocations: 0 / 362.7 MB, free: 7.617 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.682e-06/0.217, allocations: 3.938 kB / 362.7 MB, free: 7.613 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.217, allocations: 0 / 362.7 MB, free: 7.613 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006111/0.2176, allocations: 301.3 kB / 363 MB, free: 7.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.2176, allocations: 0 / 363 MB, free: 7.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002691/0.2179, allocations: 19.98 kB / 363 MB, free: 7.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005247/0.2185, allocations: 80.73 kB / 363.1 MB, free: 7.168 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.858e-05/0.2185, allocations: 11.92 kB / 363.1 MB, free: 7.156 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003851/0.2224, allocations: 1.733 MB / 364.9 MB, free: 5.293 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.317e-06/0.2224, allocations: 3.938 kB / 364.9 MB, free: 5.289 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001889/0.2243, allocations: 357.5 kB / 365.2 MB, free: 4.918 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001714/0.2245, allocations: 104.8 kB / 365.3 MB, free: 4.797 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.26e-05/0.2246, allocations: 4 kB / 365.3 MB, free: 4.793 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004617/0.2251, allocations: 35.89 kB / 365.4 MB, free: 4.758 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001585/0.2253, allocations: 19.98 kB / 365.4 MB, free: 4.738 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.044e-05/0.2253, allocations: 7.984 kB / 365.4 MB, free: 4.73 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003608/0.2257, allocations: 190 kB / 365.6 MB, free: 4.547 MB / 302.1 MB Notification: Performance of sort global known variables: time 5.91e-07/0.2257, allocations: 0 / 365.6 MB, free: 4.547 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008459/0.2266, allocations: 71.84 kB / 365.6 MB, free: 4.477 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.0002261/0.2268, allocations: 111.2 kB / 365.7 MB, free: 4.355 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002377/0.2292, allocations: 477.8 kB / 366.2 MB, free: 3.863 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.868e-06/0.2292, allocations: 0 / 366.2 MB, free: 3.863 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000954/0.2302, allocations: 234.1 kB / 366.4 MB, free: 3.625 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000672/0.2309, allocations: 44.56 kB / 366.5 MB, free: 3.582 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00581/0.2367, allocations: 0.9963 MB / 367.5 MB, free: 2.547 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005302/0.2373, allocations: 0.7521 MB / 368.2 MB, free: 1.77 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000164/0.2375, allocations: 19.44 kB / 368.2 MB, free: 1.75 MB / 302.1 MB Notification: Performance of SimCode: time 2.194e-06/0.2375, allocations: 0 / 368.2 MB, free: 1.75 MB / 302.1 MB Notification: Performance of Templates: time 0.2784/0.5159, allocations: 4.167 MB / 372.4 MB, free: 24.41 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/InvertingSchmittTrigger/InvertingSchmittTrigger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches