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.00153/0.00153, allocations: 115.5 kB / 17.28 MB, free: 6.219 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.00167/0.00167, allocations: 185.3 kB / 18.2 MB, free: 5.301 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.675/1.675, allocations: 205.1 MB / 224.1 MB, free: 12.44 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.001383/0.001383, allocations: 47.94 kB / 280.2 MB, free: 3.484 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1727/0.1741, allocations: 46.63 MB / 326.8 MB, free: 4.785 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.006214/0.1804, allocations: 2.772 MB / 329.6 MB, free: 1.988 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001717/0.1821, allocations: 0.7099 MB / 330.3 MB, free: 1.27 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001974/0.1824, allocations: 4 kB / 330.3 MB, free: 1.266 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002229/0.1826, allocations: 31.75 kB / 330.3 MB, free: 1.234 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002147/0.1828, allocations: 75.39 kB / 330.4 MB, free: 1.16 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003863/0.1832, allocations: 87.91 kB / 330.5 MB, free: 1.074 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000495/0.1837, allocations: 350.6 kB / 330.8 MB, free: 0.7305 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002824/0.184, allocations: 84.7 kB / 330.9 MB, free: 0.6523 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002203/0.1842, allocations: 131.5 kB / 331 MB, free: 0.5234 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002245/0.1845, allocations: 155.3 kB / 331.2 MB, free: 380 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.254e-05/0.1845, allocations: 32 kB / 331.2 MB, free: 348 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.748e-05/0.1846, allocations: 28 kB / 331.2 MB, free: 320 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 9.573e-05/0.1847, allocations: 67.69 kB / 331.3 MB, free: 252 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002097/0.1849, allocations: 143.3 kB / 331.4 MB, free: 108 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005716/0.1855, allocations: 323.1 kB / 331.8 MB, free: 15.79 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.187e-05/0.1855, allocations: 4 kB / 331.8 MB, free: 15.79 MB / 286.1 MB Notification: Performance of FrontEnd: time 4.107e-06/0.1855, allocations: 0 / 331.8 MB, free: 15.79 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.097e-05/0.1856, allocations: 0 / 331.8 MB, free: 15.79 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.001846/0.1874, allocations: 0.6379 MB / 332.4 MB, free: 15.09 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.357e-05/0.1875, allocations: 11.89 kB / 332.4 MB, free: 15.08 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001058/0.1876, allocations: 40.53 kB / 332.4 MB, free: 15.04 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004801/0.1881, allocations: 275.7 kB / 332.7 MB, free: 14.73 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.923e-05/0.1882, allocations: 16.81 kB / 332.7 MB, free: 14.71 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.234e-05/0.1882, allocations: 24.36 kB / 332.8 MB, free: 14.69 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006927/0.1889, allocations: 247.5 kB / 333 MB, free: 14.44 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.785e-05/0.189, allocations: 0 / 333 MB, free: 14.44 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.278e-05/0.189, allocations: 11.94 kB / 333 MB, free: 14.43 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.635e-05/0.189, allocations: 4 kB / 333 MB, free: 14.43 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007372/0.1898, allocations: 253.6 kB / 333.3 MB, free: 14.18 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001835/0.1916, allocations: 0.8738 MB / 334.1 MB, free: 13.23 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008909/0.1925, allocations: 242.5 kB / 334.4 MB, free: 12.99 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003447/0.1929, allocations: 104.8 kB / 334.5 MB, free: 12.88 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.096e-05/0.1929, allocations: 0 / 334.5 MB, free: 12.88 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006657/0.1936, allocations: 173.8 kB / 334.6 MB, free: 12.69 MB / 286.1 MB Notification: Performance of pre-optimization done (n=13): time 1.132e-06/0.1936, allocations: 8 kB / 334.7 MB, free: 12.68 MB / 286.1 MB Notification: Performance of matching and sorting (n=13): time 0.002446/0.1961, allocations: 0.6711 MB / 335.3 MB, free: 11.98 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001217/0.1962, allocations: 106.8 kB / 335.4 MB, free: 11.86 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000326/0.1965, allocations: 270.6 kB / 335.7 MB, free: 11.58 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.113e-05/0.1966, allocations: 29.7 kB / 335.7 MB, free: 11.55 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001649/0.1967, allocations: 183.8 kB / 335.9 MB, free: 11.36 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.867e-05/0.1968, allocations: 43.39 kB / 335.9 MB, free: 11.32 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.34e-05/0.1969, allocations: 45.64 kB / 336 MB, free: 11.27 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002615/0.1972, allocations: 342.8 kB / 336.3 MB, free: 10.93 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003944/0.1976, allocations: 108.7 kB / 336.4 MB, free: 10.82 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004577/0.198, allocations: 173.4 kB / 336.6 MB, free: 10.61 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008402/0.1989, allocations: 284.6 kB / 336.9 MB, free: 10.3 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.1989, allocations: 0 / 336.9 MB, free: 10.3 MB / 286.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.001322/0.2002, allocations: 447.6 kB / 337.3 MB, free: 9.852 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.855e-05/0.2003, allocations: 37.69 kB / 337.3 MB, free: 9.809 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.243e-05/0.2003, allocations: 0 / 337.3 MB, free: 9.809 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004635/0.2008, allocations: 88.77 kB / 337.4 MB, free: 9.719 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001927/0.201, allocations: 36.19 kB / 337.5 MB, free: 9.684 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003286/0.2043, allocations: 2.013 MB / 339.5 MB, free: 7.523 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003196/0.2046, allocations: 59.7 kB / 339.5 MB, free: 7.465 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.746e-05/0.2047, allocations: 12 kB / 339.6 MB, free: 7.453 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003457/0.205, allocations: 180.1 kB / 339.7 MB, free: 7.273 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003055/0.2053, allocations: 153.5 kB / 339.9 MB, free: 7.09 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005142/0.2059, allocations: 245.2 kB / 340.1 MB, free: 6.816 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.323e-06/0.2059, allocations: 0 / 340.1 MB, free: 6.816 MB / 286.1 MB Notification: Performance of matching and sorting (n=25) (initialization_lambda0): time 0.0007325/0.2066, allocations: 326.7 kB / 340.4 MB, free: 6.484 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.089e-05/0.2067, allocations: 37.7 kB / 340.5 MB, free: 6.441 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.154e-06/0.2067, allocations: 0 / 340.5 MB, free: 6.441 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001004/0.2068, allocations: 33.09 kB / 340.5 MB, free: 6.406 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001835/0.207, allocations: 43.91 kB / 340.6 MB, free: 6.363 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001141/0.2081, allocations: 1.41 MB / 342 MB, free: 4.816 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002877/0.2084, allocations: 47.8 kB / 342 MB, free: 4.77 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.964e-05/0.2085, allocations: 8 kB / 342 MB, free: 4.762 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.0002045/0.2087, allocations: 200.6 kB / 342.2 MB, free: 4.559 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.531e-05/0.2087, allocations: 27.7 kB / 342.2 MB, free: 4.531 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.808e-05/0.2088, allocations: 29.83 kB / 342.3 MB, free: 4.504 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.415e-06/0.2088, allocations: 0 / 342.3 MB, free: 4.504 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/0.2088, allocations: 3.938 kB / 342.3 MB, free: 4.5 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.2088, allocations: 0 / 342.3 MB, free: 4.5 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003615/0.2092, allocations: 289.5 kB / 342.6 MB, free: 4.168 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/0.2092, allocations: 0 / 342.6 MB, free: 4.168 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000135/0.2093, allocations: 27.97 kB / 342.6 MB, free: 4.141 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002651/0.2096, allocations: 80.73 kB / 342.7 MB, free: 4.059 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.687e-05/0.2096, allocations: 0 / 342.7 MB, free: 4.059 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002612/0.2123, allocations: 1.931 MB / 344.6 MB, free: 1.988 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.2123, allocations: 0 / 344.6 MB, free: 1.988 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001026/0.2133, allocations: 361.6 kB / 344.9 MB, free: 1.613 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.775e-05/0.2134, allocations: 104.8 kB / 345 MB, free: 1.492 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.387e-05/0.2135, allocations: 0 / 345 MB, free: 1.492 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002435/0.2137, allocations: 39.89 kB / 345.1 MB, free: 1.453 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001101/0.2138, allocations: 15.98 kB / 345.1 MB, free: 1.438 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.804e-05/0.2139, allocations: 7.984 kB / 345.1 MB, free: 1.43 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002275/0.2141, allocations: 201.9 kB / 345.3 MB, free: 1.23 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2141, allocations: 0 / 345.3 MB, free: 1.23 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000591/0.2147, allocations: 123.7 kB / 345.4 MB, free: 1.109 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.0002505/0.2149, allocations: 103.2 kB / 345.5 MB, free: 1 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001869/0.2168, allocations: 0.7535 MB / 346.3 MB, free: 200 kB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.008e-06/0.2168, allocations: 0.9375 kB / 346.3 MB, free: 200 kB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005454/0.2174, allocations: 238.6 kB / 346.5 MB, free: 15.95 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003972/0.2178, allocations: 44.7 kB / 346.6 MB, free: 15.91 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00315/0.221, allocations: 0.9916 MB / 347.6 MB, free: 14.89 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004729/0.2215, allocations: 0.7444 MB / 348.3 MB, free: 14.11 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001475/0.2216, allocations: 30.28 kB / 348.3 MB, free: 14.08 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.894e-05/0.2217, allocations: 19.44 kB / 348.3 MB, free: 14.06 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2217, allocations: 0 / 348.3 MB, free: 14.06 MB / 302.1 MB Notification: Performance of Templates: time 0.00997/0.2317, allocations: 4.052 MB / 352.4 MB, free: 10.02 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