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.00101/0.00101, allocations: 95.61 kB / 17.3 MB, free: 6.391 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.00143/0.00143, allocations: 175.6 kB / 18.21 MB, free: 5.551 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.961/1.961, allocations: 205.4 MB / 224.4 MB, free: 13.07 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.0005788/0.000579, allocations: 8 kB / 281.4 MB, free: 3.406 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1793/0.1799, allocations: 47.58 MB / 329 MB, free: 3.75 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.004119/0.1841, allocations: 2.41 MB / 331.4 MB, free: 1.32 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001927/0.1861, allocations: 0.7022 MB / 332.1 MB, free: 0.6094 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003205/0.1865, allocations: 4 kB / 332.1 MB, free: 0.6055 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002085/0.1867, allocations: 27.77 kB / 332.1 MB, free: 0.5781 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003734/0.1871, allocations: 83.38 kB / 332.2 MB, free: 0.4961 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005031/0.1876, allocations: 79.91 kB / 332.3 MB, free: 428 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005833/0.1882, allocations: 338.6 kB / 332.6 MB, free: 88 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002525/0.1885, allocations: 61.17 kB / 332.7 MB, free: 32 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003351/0.1888, allocations: 123.5 kB / 332.8 MB, free: 15.91 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000286/0.1891, allocations: 135.3 kB / 332.9 MB, free: 15.78 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.738e-05/0.1892, allocations: 16 kB / 332.9 MB, free: 15.76 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.646e-05/0.1892, allocations: 16 kB / 332.9 MB, free: 15.75 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.576e-05/0.1893, allocations: 51.7 kB / 333 MB, free: 15.7 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002177/0.1895, allocations: 153 kB / 333.1 MB, free: 15.54 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003651/0.1899, allocations: 303 kB / 333.4 MB, free: 15.24 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.214e-06/0.1899, allocations: 4 kB / 333.4 MB, free: 15.24 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.1899, allocations: 3.938 kB / 333.5 MB, free: 15.23 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.131e-05/0.1899, allocations: 0 / 333.5 MB, free: 15.23 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.001445/0.1914, allocations: 0.6108 MB / 334.1 MB, free: 14.56 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.108e-05/0.1915, allocations: 8.031 kB / 334.1 MB, free: 14.55 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00014/0.1916, allocations: 32.56 kB / 334.1 MB, free: 14.52 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004775/0.1921, allocations: 279.6 kB / 334.4 MB, free: 14.21 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.826e-05/0.1921, allocations: 20.81 kB / 334.4 MB, free: 14.19 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.748e-05/0.1922, allocations: 20.38 kB / 334.4 MB, free: 14.17 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000726/0.1929, allocations: 267.5 kB / 334.7 MB, free: 13.9 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.405e-05/0.193, allocations: 4 kB / 334.7 MB, free: 13.9 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.876e-05/0.193, allocations: 4 kB / 334.7 MB, free: 13.89 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.389e-05/0.193, allocations: 8 kB / 334.7 MB, free: 13.89 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008079/0.1938, allocations: 285.5 kB / 335 MB, free: 13.61 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002072/0.1959, allocations: 0.8973 MB / 335.9 MB, free: 12.64 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009601/0.1969, allocations: 266.6 kB / 336.1 MB, free: 12.38 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004054/0.1973, allocations: 124.7 kB / 336.3 MB, free: 12.25 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.374e-05/0.1974, allocations: 0 / 336.3 MB, free: 12.25 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006027/0.198, allocations: 193.8 kB / 336.4 MB, free: 12.04 MB / 286.1 MB Notification: Performance of pre-optimization done (n=13): time 1.493e-06/0.198, allocations: 4 kB / 336.4 MB, free: 12.04 MB / 286.1 MB Notification: Performance of matching and sorting (n=13): time 0.00274/0.2007, allocations: 0.7488 MB / 337.2 MB, free: 11.26 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001052/0.2009, allocations: 110.8 kB / 337.3 MB, free: 11.12 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003627/0.2012, allocations: 274.5 kB / 337.6 MB, free: 10.85 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.789e-05/0.2013, allocations: 29.7 kB / 337.6 MB, free: 10.81 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001503/0.2014, allocations: 175.9 kB / 337.8 MB, free: 10.64 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.815e-05/0.2015, allocations: 43.38 kB / 337.8 MB, free: 10.59 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.842e-05/0.2016, allocations: 29.72 kB / 337.8 MB, free: 10.56 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000161/0.2017, allocations: 334.8 kB / 338.2 MB, free: 10.22 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003768/0.2021, allocations: 119.9 kB / 338.3 MB, free: 10.11 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004814/0.2026, allocations: 189.3 kB / 338.5 MB, free: 9.887 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008183/0.2034, allocations: 309.2 kB / 338.8 MB, free: 9.551 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.881e-06/0.2035, allocations: 0 / 338.8 MB, free: 9.551 MB / 286.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.001496/0.205, allocations: 498.7 kB / 339.3 MB, free: 9.051 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000265/0.2052, allocations: 173.5 kB / 339.4 MB, free: 8.844 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.888e-05/0.2053, allocations: 4 kB / 339.4 MB, free: 8.84 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004485/0.2057, allocations: 80.8 kB / 339.5 MB, free: 8.758 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002151/0.2059, allocations: 47.97 kB / 339.6 MB, free: 8.711 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003362/0.2093, allocations: 1.869 MB / 341.4 MB, free: 6.699 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004045/0.2097, allocations: 60 kB / 341.5 MB, free: 6.641 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.131e-05/0.2098, allocations: 8.219 kB / 341.5 MB, free: 6.633 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.293e-05/0.2098, allocations: 4 kB / 341.5 MB, free: 6.629 MB / 286.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008077/0.2106, allocations: 322.3 kB / 341.8 MB, free: 6.305 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.2106, allocations: 0 / 341.8 MB, free: 6.305 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.538e-05/0.2107, allocations: 20.84 kB / 341.8 MB, free: 6.281 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002112/0.211, allocations: 55.91 kB / 341.9 MB, free: 6.227 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001256/0.2122, allocations: 1.308 MB / 343.2 MB, free: 4.785 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003515/0.2126, allocations: 59.75 kB / 343.3 MB, free: 4.727 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.074e-05/0.2126, allocations: 8 kB / 343.3 MB, free: 4.719 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.0002845/0.2129, allocations: 216.4 kB / 343.5 MB, free: 4.5 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.067e-05/0.213, allocations: 23.75 kB / 343.5 MB, free: 4.477 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.784e-05/0.213, allocations: 21.83 kB / 343.5 MB, free: 4.461 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.213, allocations: 7.938 kB / 343.5 MB, free: 4.453 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.2131, allocations: 0 / 343.5 MB, free: 4.453 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.2131, allocations: 0 / 343.5 MB, free: 4.453 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00044/0.2135, allocations: 297.4 kB / 343.8 MB, free: 4.113 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-06/0.2135, allocations: 7.938 kB / 343.8 MB, free: 4.105 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001422/0.2137, allocations: 31.97 kB / 343.9 MB, free: 4.074 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003012/0.214, allocations: 76.81 kB / 343.9 MB, free: 3.996 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.607e-05/0.214, allocations: 7.984 kB / 343.9 MB, free: 3.988 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00257/0.2166, allocations: 1.76 MB / 345.7 MB, free: 2.094 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.55e-06/0.2166, allocations: 3.938 kB / 345.7 MB, free: 2.09 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001183/0.2178, allocations: 401.5 kB / 346.1 MB, free: 1.676 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001304/0.218, allocations: 100.8 kB / 346.2 MB, free: 1.559 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.264e-05/0.218, allocations: 4 kB / 346.2 MB, free: 1.555 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002746/0.2183, allocations: 43.95 kB / 346.2 MB, free: 1.512 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001092/0.2184, allocations: 31.91 kB / 346.3 MB, free: 1.48 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.521e-05/0.2184, allocations: 4 kB / 346.3 MB, free: 1.477 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002398/0.2187, allocations: 186 kB / 346.5 MB, free: 1.293 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.2187, allocations: 0 / 346.5 MB, free: 1.293 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006357/0.2193, allocations: 127.7 kB / 346.6 MB, free: 1.168 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.0002185/0.2196, allocations: 103.2 kB / 346.7 MB, free: 1.059 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001938/0.2215, allocations: 0.8088 MB / 347.5 MB, free: 204 kB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.2215, allocations: 0 / 347.5 MB, free: 204 kB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005473/0.2221, allocations: 251.5 kB / 347.7 MB, free: 15.94 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004072/0.2225, allocations: 44.47 kB / 347.8 MB, free: 15.9 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00346/0.226, allocations: 1.069 MB / 348.8 MB, free: 14.8 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004201/0.2264, allocations: 0.7483 MB / 349.6 MB, free: 14.03 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001716/0.2266, allocations: 26.28 kB / 349.6 MB, free: 14 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.097e-05/0.2267, allocations: 19.44 kB / 349.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of SimCode: time 7.52e-07/0.2267, allocations: 7.875 kB / 349.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of Templates: time 0.01034/0.237, allocations: 3.775 MB / 353.4 MB, free: 10.21 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