Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 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.SchmittTrigger,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.SchmittTrigger") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger,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.SchmittTrigger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001503/0.001504, allocations: 108.8 kB / 17.73 MB, free: 5.34 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.001548/0.001548, allocations: 186.9 kB / 18.66 MB, free: 4.414 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.766/1.766, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001347/0.001347, allocations: 47.94 kB / 328.6 MB, free: 3.262 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1561/0.1575, allocations: 46.62 MB / 375.2 MB, free: 4.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger): time 0.004867/0.1624, allocations: 2.711 MB / 377.9 MB, free: 1.809 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001666/0.1641, allocations: 0.7212 MB / 378.6 MB, free: 1.078 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001876/0.1643, allocations: 7.938 kB / 378.6 MB, free: 1.07 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001744/0.1645, allocations: 43.58 kB / 378.7 MB, free: 1.027 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002138/0.1647, allocations: 87.27 kB / 378.7 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003569/0.1651, allocations: 91.81 kB / 378.8 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004872/0.1656, allocations: 362.4 kB / 379.2 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002303/0.1658, allocations: 88.69 kB / 379.3 MB, free: 420 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002069/0.1661, allocations: 127.5 kB / 379.4 MB, free: 292 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002195/0.1663, allocations: 151.3 kB / 379.6 MB, free: 140 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.709e-05/0.1664, allocations: 32 kB / 379.6 MB, free: 108 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.758e-05/0.1664, allocations: 32 kB / 379.6 MB, free: 76 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.499e-05/0.1665, allocations: 71.69 kB / 379.7 MB, free: 4 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.3001/0.4666, allocations: 135.3 kB / 379.8 MB, free: 10.1 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006744/0.4674, allocations: 330.1 kB / 380.1 MB, free: 10.06 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.674e-06/0.4674, allocations: 0 / 380.1 MB, free: 10.06 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.526e-06/0.4674, allocations: 0 / 380.1 MB, free: 10.06 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.614e-05/0.4674, allocations: 3.812 kB / 380.1 MB, free: 10.06 MB / 318.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.001311/0.4687, allocations: 0.6463 MB / 380.8 MB, free: 9.582 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.678e-05/0.4688, allocations: 9.625 kB / 380.8 MB, free: 9.582 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.921e-05/0.4689, allocations: 35.81 kB / 380.8 MB, free: 9.566 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004094/0.4693, allocations: 281.2 kB / 381.1 MB, free: 9.336 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.156e-05/0.4693, allocations: 16.38 kB / 381.1 MB, free: 9.336 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.542e-05/0.4694, allocations: 20.77 kB / 381.1 MB, free: 9.336 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006227/0.47, allocations: 245.3 kB / 381.4 MB, free: 9.297 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.36e-05/0.47, allocations: 5.719 kB / 381.4 MB, free: 9.293 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.759e-05/0.4701, allocations: 10.02 kB / 381.4 MB, free: 9.293 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.06e-05/0.4701, allocations: 5.5 kB / 381.4 MB, free: 9.293 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007348/0.4708, allocations: 245.6 kB / 381.6 MB, free: 9.293 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001664/0.4725, allocations: 0.8729 MB / 382.5 MB, free: 8.891 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008973/0.4734, allocations: 242.2 kB / 382.8 MB, free: 8.863 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003861/0.4738, allocations: 104.3 kB / 382.9 MB, free: 8.852 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.552e-05/0.4739, allocations: 2.078 kB / 382.9 MB, free: 8.852 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005438/0.4744, allocations: 180.3 kB / 383 MB, free: 8.773 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 1.483e-06/0.4744, allocations: 0 / 383 MB, free: 8.773 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.002608/0.477, allocations: 0.6762 MB / 383.7 MB, free: 8.609 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.857e-05/0.4771, allocations: 109.1 kB / 383.8 MB, free: 8.484 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003394/0.4774, allocations: 266.1 kB / 384.1 MB, free: 8.371 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.771e-05/0.4775, allocations: 31.05 kB / 384.1 MB, free: 8.34 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001172/0.4776, allocations: 180.8 kB / 384.3 MB, free: 8.219 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.037e-05/0.4777, allocations: 37.52 kB / 384.3 MB, free: 8.195 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.318e-05/0.4778, allocations: 48.22 kB / 384.4 MB, free: 8.176 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.49e-05/0.4779, allocations: 337.5 kB / 384.7 MB, free: 7.859 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003676/0.4782, allocations: 103.8 kB / 384.8 MB, free: 7.848 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003929/0.4786, allocations: 162.2 kB / 385 MB, free: 7.773 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006993/0.4793, allocations: 262.8 kB / 385.2 MB, free: 7.684 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.939e-06/0.4794, allocations: 1.375 kB / 385.2 MB, free: 7.684 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.001298/0.4807, allocations: 437.6 kB / 385.6 MB, free: 7.59 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.307e-05/0.4807, allocations: 34.33 kB / 385.7 MB, free: 7.559 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.4807, allocations: 1.844 kB / 385.7 MB, free: 7.559 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00041/0.4811, allocations: 80.44 kB / 385.8 MB, free: 7.547 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001997/0.4814, allocations: 42.59 kB / 385.8 MB, free: 7.547 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00281/0.4842, allocations: 1.962 MB / 387.8 MB, free: 6.023 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003781/0.4846, allocations: 49.64 kB / 387.8 MB, free: 6.012 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.856e-05/0.4846, allocations: 12.3 kB / 387.8 MB, free: 6.012 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003677/0.485, allocations: 174.3 kB / 388 MB, free: 5.93 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003112/0.4853, allocations: 150.4 kB / 388.1 MB, free: 5.852 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005268/0.4858, allocations: 223.8 kB / 388.4 MB, free: 5.715 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.763e-06/0.4859, allocations: 4 kB / 388.4 MB, free: 5.711 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization_lambda0): time 0.0007642/0.4866, allocations: 320.5 kB / 388.7 MB, free: 5.566 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.981e-05/0.4867, allocations: 37.83 kB / 388.7 MB, free: 5.531 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/0.4867, allocations: 5.328 kB / 388.7 MB, free: 5.531 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001084/0.4868, allocations: 37.66 kB / 388.8 MB, free: 5.512 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001887/0.487, allocations: 39.56 kB / 388.8 MB, free: 5.512 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009055/0.4879, allocations: 1.602 MB / 390.4 MB, free: 3.938 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003318/0.4882, allocations: 47.19 kB / 390.4 MB, free: 3.922 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.772e-05/0.4883, allocations: 11.53 kB / 390.4 MB, free: 3.918 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (18): * Single equations (assignments): 16 * 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.0001291/0.4884, allocations: 205.2 kB / 390.6 MB, free: 3.723 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.379e-05/0.4885, allocations: 24.52 kB / 390.7 MB, free: 3.711 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.167e-05/0.4885, allocations: 25.33 kB / 390.7 MB, free: 3.691 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.376e-06/0.4885, allocations: 3.016 kB / 390.7 MB, free: 3.691 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.716e-06/0.4885, allocations: 0 / 390.7 MB, free: 3.691 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.4885, allocations: 0.7969 kB / 390.7 MB, free: 3.691 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003153/0.4889, allocations: 304 kB / 391 MB, free: 3.445 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.4889, allocations: 1.25 kB / 391 MB, free: 3.445 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000138/0.489, allocations: 26.11 kB / 391 MB, free: 3.441 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002763/0.4893, allocations: 75.27 kB / 391.1 MB, free: 3.422 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.565e-05/0.4893, allocations: 1.812 kB / 391.1 MB, free: 3.422 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002117/0.4915, allocations: 1.764 MB / 392.9 MB, free: 1.93 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.4915, allocations: 0.6562 kB / 392.9 MB, free: 1.93 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001099/0.4926, allocations: 360.2 kB / 393.2 MB, free: 1.789 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.411e-05/0.4926, allocations: 104.9 kB / 393.3 MB, free: 1.676 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.731e-05/0.4927, allocations: 7.359 kB / 393.3 MB, free: 1.672 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002411/0.4929, allocations: 32.33 kB / 393.4 MB, free: 1.672 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001106/0.4931, allocations: 18.72 kB / 393.4 MB, free: 1.668 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.657e-05/0.4931, allocations: 8.172 kB / 393.4 MB, free: 1.664 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002626/0.4934, allocations: 194.3 kB / 393.6 MB, free: 1.551 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4934, allocations: 4 kB / 393.6 MB, free: 1.547 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007081/0.4941, allocations: 118.8 kB / 393.7 MB, free: 1.527 MB / 318.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.0001509/0.4942, allocations: 106.8 kB / 393.8 MB, free: 1.434 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001709/0.4959, allocations: 0.6776 MB / 394.5 MB, free: 1 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.97e-06/0.496, allocations: 1.688 kB / 394.5 MB, free: 1 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000505/0.4965, allocations: 238.3 kB / 394.7 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003819/0.4969, allocations: 44.19 kB / 394.8 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001225/0.4981, allocations: 460 kB / 395.2 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004253/0.4985, allocations: 0.7478 MB / 395.9 MB, free: 15.86 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000146/0.4987, allocations: 25.28 kB / 396 MB, free: 15.85 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.178e-05/0.4988, allocations: 19.09 kB / 396 MB, free: 15.84 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.4988, allocations: 0 / 396 MB, free: 15.84 MB / 334.1 MB Notification: Performance of Templates: time 0.01056/0.5094, allocations: 4.242 MB / 400.2 MB, free: 15.21 MB / 334.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/OpAmps/SchmittTrigger/SchmittTrigger.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches