Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001448/0.001448, allocations: 106.4 kB / 17.15 MB, free: 6.305 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.001572/0.001572, allocations: 198 kB / 18.07 MB, free: 5.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.815/1.815, allocations: 205.1 MB / 223.9 MB, free: 12.38 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002445/0.002445, allocations: 48.41 kB / 280 MB, free: 3.574 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1678/0.1703, allocations: 46.64 MB / 326.6 MB, free: 4.871 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.005409/0.1758, allocations: 2.764 MB / 329.4 MB, free: 2.082 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001586/0.1775, allocations: 0.7139 MB / 330.1 MB, free: 1.359 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000181/0.1777, allocations: 11.94 kB / 330.1 MB, free: 1.348 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002166/0.1779, allocations: 31.77 kB / 330.1 MB, free: 1.316 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002145/0.1781, allocations: 79.38 kB / 330.2 MB, free: 1.238 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003542/0.1785, allocations: 79.91 kB / 330.3 MB, free: 1.16 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003924/0.1789, allocations: 330.6 kB / 330.6 MB, free: 0.8359 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002339/0.1791, allocations: 73.14 kB / 330.7 MB, free: 0.7695 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001762/0.1793, allocations: 119.4 kB / 330.8 MB, free: 0.6523 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002058/0.1795, allocations: 143.4 kB / 330.9 MB, free: 0.5117 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.376e-05/0.1796, allocations: 16 kB / 331 MB, free: 0.4961 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.539e-05/0.1797, allocations: 23.94 kB / 331 MB, free: 484 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.929e-05/0.1797, allocations: 55.75 kB / 331 MB, free: 428 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001907/0.1799, allocations: 135.2 kB / 331.2 MB, free: 292 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003825/0.1803, allocations: 311.1 kB / 331.5 MB, free: 15.98 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.105e-06/0.1803, allocations: 0 / 331.5 MB, free: 15.98 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.1804, allocations: 0 / 331.5 MB, free: 15.98 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.394e-06/0.1804, allocations: 4 kB / 331.5 MB, free: 15.98 MB / 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.001502/0.1819, allocations: 0.638 MB / 332.1 MB, free: 15.28 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.867e-05/0.1819, allocations: 8.031 kB / 332.1 MB, free: 15.27 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.905e-05/0.182, allocations: 32.56 kB / 332.2 MB, free: 15.24 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004121/0.1825, allocations: 291.5 kB / 332.4 MB, free: 14.91 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.974e-05/0.1825, allocations: 16.81 kB / 332.5 MB, free: 14.9 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.733e-05/0.1825, allocations: 20.38 kB / 332.5 MB, free: 14.88 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006654/0.1832, allocations: 247.5 kB / 332.7 MB, free: 14.63 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.264e-05/0.1832, allocations: 4 kB / 332.7 MB, free: 14.62 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.266e-05/0.1833, allocations: 8 kB / 332.7 MB, free: 14.62 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.768e-06/0.1833, allocations: 4 kB / 332.7 MB, free: 14.61 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007559/0.184, allocations: 245.6 kB / 333 MB, free: 14.38 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001762/0.1858, allocations: 0.8815 MB / 333.9 MB, free: 13.43 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008741/0.1867, allocations: 238.6 kB / 334.1 MB, free: 13.18 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003436/0.1871, allocations: 104.8 kB / 334.2 MB, free: 13.08 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.391e-05/0.1871, allocations: 0 / 334.2 MB, free: 13.08 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006642/0.1878, allocations: 181.7 kB / 334.4 MB, free: 12.88 MB / 286.1 MB Notification: Performance of pre-optimization done (n=13): time 1.543e-06/0.1878, allocations: 0 / 334.4 MB, free: 12.88 MB / 286.1 MB Notification: Performance of matching and sorting (n=13): time 0.00263/0.1904, allocations: 0.6789 MB / 335 MB, free: 12.17 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001149/0.1906, allocations: 110.8 kB / 335.2 MB, free: 12.04 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00035/0.1909, allocations: 266.6 kB / 335.4 MB, free: 11.77 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.314e-05/0.191, allocations: 33.7 kB / 335.4 MB, free: 11.73 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001555/0.1911, allocations: 175.8 kB / 335.6 MB, free: 11.55 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.31e-05/0.1912, allocations: 47.38 kB / 335.7 MB, free: 11.51 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.931e-05/0.1913, allocations: 45.7 kB / 335.7 MB, free: 11.46 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001758/0.1915, allocations: 334.8 kB / 336 MB, free: 11.12 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000368/0.1919, allocations: 112.7 kB / 336.1 MB, free: 11.01 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003988/0.1923, allocations: 173.4 kB / 336.3 MB, free: 10.8 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006921/0.193, allocations: 280.3 kB / 336.6 MB, free: 10.5 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.193, allocations: 0 / 336.6 MB, free: 10.5 MB / 286.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.001277/0.1943, allocations: 455.5 kB / 337 MB, free: 10.04 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.338e-05/0.1943, allocations: 33.7 kB / 337.1 MB, free: 10 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.466e-05/0.1944, allocations: 3.984 kB / 337.1 MB, free: 9.996 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004595/0.1948, allocations: 76.81 kB / 337.1 MB, free: 9.918 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002112/0.1951, allocations: 47.92 kB / 337.2 MB, free: 9.871 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00318/0.1982, allocations: 1.822 MB / 339 MB, free: 7.906 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003777/0.1986, allocations: 44.03 kB / 339.1 MB, free: 7.863 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.057e-05/0.1987, allocations: 8 kB / 339.1 MB, free: 7.855 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004785/0.1992, allocations: 184 kB / 339.2 MB, free: 7.672 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00035/0.1995, allocations: 165.5 kB / 339.4 MB, free: 7.477 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005942/0.2001, allocations: 245.2 kB / 339.6 MB, free: 7.203 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.258e-06/0.2001, allocations: 0 / 339.6 MB, free: 7.203 MB / 286.1 MB Notification: Performance of matching and sorting (n=25) (initialization_lambda0): time 0.00103/0.2012, allocations: 326.9 kB / 340 MB, free: 6.871 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.789e-05/0.2013, allocations: 33.7 kB / 340 MB, free: 6.832 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.757e-06/0.2013, allocations: 0 / 340 MB, free: 6.832 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001145/0.2014, allocations: 32.78 kB / 340 MB, free: 6.797 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002051/0.2016, allocations: 55.83 kB / 340.1 MB, free: 6.742 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001347/0.203, allocations: 1.308 MB / 341.4 MB, free: 5.305 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003536/0.2033, allocations: 39.91 kB / 341.4 MB, free: 5.266 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.463e-05/0.2034, allocations: 12.11 kB / 341.4 MB, free: 5.254 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (20): * Single equations (assignments): 18 * 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.0002455/0.2036, allocations: 204.4 kB / 341.6 MB, free: 5.047 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.833e-05/0.2037, allocations: 27.66 kB / 341.7 MB, free: 5.02 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.732e-05/0.2038, allocations: 29.97 kB / 341.7 MB, free: 4.992 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.62e-06/0.2038, allocations: 3.984 kB / 341.7 MB, free: 4.988 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.2038, allocations: 0 / 341.7 MB, free: 4.988 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.2038, allocations: 4 kB / 341.7 MB, free: 4.984 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005155/0.2044, allocations: 289.4 kB / 342 MB, free: 4.652 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.2044, allocations: 0 / 342 MB, free: 4.652 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001489/0.2045, allocations: 27.97 kB / 342 MB, free: 4.625 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003068/0.2049, allocations: 72.8 kB / 342.1 MB, free: 4.551 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.172e-05/0.2049, allocations: 4 kB / 342.1 MB, free: 4.547 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002862/0.2078, allocations: 1.732 MB / 343.8 MB, free: 2.68 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.2078, allocations: 0 / 343.8 MB, free: 2.68 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001181/0.209, allocations: 357.4 kB / 344.2 MB, free: 2.309 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000131/0.2091, allocations: 104.8 kB / 344.3 MB, free: 2.188 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.338e-05/0.2092, allocations: 4.125 kB / 344.3 MB, free: 2.184 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002646/0.2094, allocations: 35.97 kB / 344.3 MB, free: 2.148 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001281/0.2096, allocations: 19.97 kB / 344.3 MB, free: 2.129 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.638e-05/0.2096, allocations: 4 kB / 344.3 MB, free: 2.125 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002688/0.2099, allocations: 198 kB / 344.5 MB, free: 1.93 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.535e-06/0.2099, allocations: 0 / 344.5 MB, free: 1.93 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0007345/0.2106, allocations: 127.6 kB / 344.7 MB, free: 1.805 MB / 286.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.0002584/0.2109, allocations: 107.2 kB / 344.8 MB, free: 1.691 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.002163/0.2131, allocations: 0.7463 MB / 345.5 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.2131, allocations: 0 / 345.5 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005552/0.2137, allocations: 230.6 kB / 345.7 MB, free: 0.6562 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004418/0.2141, allocations: 52.84 kB / 345.8 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003312/0.2175, allocations: 0.9831 MB / 346.8 MB, free: 15.6 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006033/0.2181, allocations: 0.7444 MB / 347.5 MB, free: 14.82 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002014/0.2183, allocations: 34.31 kB / 347.5 MB, free: 14.79 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.377e-05/0.2184, allocations: 19.44 kB / 347.6 MB, free: 14.77 MB / 302.1 MB Notification: Performance of SimCode: time 1.413e-06/0.2184, allocations: 0 / 347.6 MB, free: 14.77 MB / 302.1 MB Notification: Performance of Templates: time 0.01156/0.2299, allocations: 3.822 MB / 351.4 MB, free: 10.95 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/OpAmps/InvertingSchmittTrigger/InvertingSchmittTrigger.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches