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.001334/0.001334, allocations: 104 kB / 17.72 MB, free: 5.242 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.001927/0.001927, allocations: 188.1 kB / 18.66 MB, free: 4.312 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.923/1.923, allocations: 205.1 MB / 224.5 MB, free: 12.23 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.001351/0.001351, allocations: 55.91 kB / 328.6 MB, free: 3.273 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1474/0.1488, allocations: 46.6 MB / 375.2 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger): time 0.006089/0.155, allocations: 2.719 MB / 377.9 MB, free: 1.828 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001867/0.1569, allocations: 0.7212 MB / 378.6 MB, free: 1.098 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002198/0.1571, allocations: 4 kB / 378.6 MB, free: 1.094 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002396/0.1575, allocations: 39.58 kB / 378.7 MB, free: 1.055 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002505/0.1577, allocations: 95.19 kB / 378.7 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000413/0.1581, allocations: 99.81 kB / 378.8 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000542/0.1587, allocations: 354.5 kB / 379.2 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003055/0.159, allocations: 84.69 kB / 379.3 MB, free: 444 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002763/0.1593, allocations: 139.5 kB / 379.4 MB, free: 304 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002526/0.1596, allocations: 151.3 kB / 379.6 MB, free: 152 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.277e-05/0.1596, allocations: 32 kB / 379.6 MB, free: 120 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.924e-05/0.1597, allocations: 28 kB / 379.6 MB, free: 92 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001055/0.1598, allocations: 67.7 kB / 379.7 MB, free: 24 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.3194/0.4792, allocations: 138.5 kB / 379.8 MB, free: 10.12 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005577/0.4798, allocations: 325.4 kB / 380.1 MB, free: 10.11 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.982e-06/0.4799, allocations: 0 / 380.1 MB, free: 10.11 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.856e-06/0.4799, allocations: 0.75 kB / 380.1 MB, free: 10.11 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.025e-05/0.4799, allocations: 0 / 380.1 MB, free: 10.11 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.001359/0.4812, allocations: 0.643 MB / 380.8 MB, free: 9.645 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.691e-05/0.4813, allocations: 8.25 kB / 380.8 MB, free: 9.645 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.074e-05/0.4814, allocations: 33.06 kB / 380.8 MB, free: 9.629 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004228/0.4818, allocations: 284.7 kB / 381.1 MB, free: 9.398 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.468e-05/0.4819, allocations: 15.5 kB / 381.1 MB, free: 9.398 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.465e-05/0.4819, allocations: 17.62 kB / 381.1 MB, free: 9.398 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006797/0.4826, allocations: 252.1 kB / 381.4 MB, free: 9.359 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.442e-05/0.4826, allocations: 7.688 kB / 381.4 MB, free: 9.355 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.172e-05/0.4827, allocations: 6.938 kB / 381.4 MB, free: 9.355 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.048e-05/0.4827, allocations: 4.125 kB / 381.4 MB, free: 9.355 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008032/0.4835, allocations: 246.7 kB / 381.6 MB, free: 9.355 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001738/0.4852, allocations: 0.8636 MB / 382.5 MB, free: 8.953 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009525/0.4862, allocations: 241.7 kB / 382.7 MB, free: 8.926 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003815/0.4866, allocations: 102.1 kB / 382.8 MB, free: 8.918 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.177e-05/0.4866, allocations: 8.594 kB / 382.8 MB, free: 8.914 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005645/0.4872, allocations: 174.4 kB / 383 MB, free: 8.84 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 1.793e-06/0.4872, allocations: 0 / 383 MB, free: 8.84 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.00264/0.4899, allocations: 0.6773 MB / 383.7 MB, free: 8.672 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.144e-05/0.4899, allocations: 110.3 kB / 383.8 MB, free: 8.547 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003753/0.4903, allocations: 263.6 kB / 384.1 MB, free: 8.438 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.547e-05/0.4904, allocations: 29.83 kB / 384.1 MB, free: 8.406 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001299/0.4905, allocations: 172.8 kB / 384.3 MB, free: 8.289 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.037e-05/0.4905, allocations: 44.33 kB / 384.3 MB, free: 8.262 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.465e-05/0.4906, allocations: 45.75 kB / 384.3 MB, free: 8.242 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000108/0.4908, allocations: 340.7 kB / 384.7 MB, free: 7.926 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003963/0.4912, allocations: 102.1 kB / 384.8 MB, free: 7.914 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000414/0.4916, allocations: 165.5 kB / 384.9 MB, free: 7.84 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007587/0.4924, allocations: 254.4 kB / 385.2 MB, free: 7.75 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.4924, allocations: 1.469 kB / 385.2 MB, free: 7.75 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.001377/0.4938, allocations: 442 kB / 385.6 MB, free: 7.656 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.611e-05/0.4938, allocations: 33.34 kB / 385.6 MB, free: 7.625 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.064e-05/0.4938, allocations: 2.562 kB / 385.6 MB, free: 7.625 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004701/0.4943, allocations: 83.64 kB / 385.7 MB, free: 7.613 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002093/0.4945, allocations: 42.41 kB / 385.8 MB, free: 7.613 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002575/0.4971, allocations: 1.961 MB / 387.7 MB, free: 6.086 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003249/0.4974, allocations: 48.05 kB / 387.8 MB, free: 6.078 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.277e-05/0.4975, allocations: 9.812 kB / 387.8 MB, free: 6.078 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003283/0.4978, allocations: 177.9 kB / 388 MB, free: 5.992 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003028/0.4981, allocations: 146.2 kB / 388.1 MB, free: 5.918 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005181/0.4987, allocations: 226.5 kB / 388.3 MB, free: 5.789 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.352e-06/0.4987, allocations: 0 / 388.3 MB, free: 5.789 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization_lambda0): time 0.0008049/0.4995, allocations: 317.7 kB / 388.6 MB, free: 5.645 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.751e-05/0.4995, allocations: 36.92 kB / 388.7 MB, free: 5.609 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.4995, allocations: 2.281 kB / 388.7 MB, free: 5.609 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001024/0.4996, allocations: 34.81 kB / 388.7 MB, free: 5.598 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000198/0.4998, allocations: 39.86 kB / 388.7 MB, free: 5.594 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001048/0.5009, allocations: 1.613 MB / 390.4 MB, free: 4.012 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003136/0.5012, allocations: 47.25 kB / 390.4 MB, free: 3.996 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.816e-05/0.5013, allocations: 7.719 kB / 390.4 MB, free: 3.996 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.0001135/0.5014, allocations: 201 kB / 390.6 MB, free: 3.801 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.141e-05/0.5014, allocations: 27.41 kB / 390.6 MB, free: 3.785 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.852e-05/0.5015, allocations: 22.36 kB / 390.7 MB, free: 3.77 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-06/0.5015, allocations: 2.797 kB / 390.7 MB, free: 3.77 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/0.5015, allocations: 3.938 kB / 390.7 MB, free: 3.77 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.5015, allocations: 4.562 kB / 390.7 MB, free: 3.766 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003117/0.5018, allocations: 300.9 kB / 391 MB, free: 3.523 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.195e-06/0.5018, allocations: 0.6562 kB / 391 MB, free: 3.523 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001433/0.502, allocations: 23.53 kB / 391 MB, free: 3.523 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002818/0.5023, allocations: 81.31 kB / 391.1 MB, free: 3.5 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.943e-05/0.5023, allocations: 5.5 kB / 391.1 MB, free: 3.496 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002359/0.5047, allocations: 1.757 MB / 392.8 MB, free: 2.008 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.5047, allocations: 1.281 kB / 392.8 MB, free: 2.008 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001241/0.5059, allocations: 353.8 kB / 393.2 MB, free: 1.871 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.975e-05/0.506, allocations: 101.5 kB / 393.3 MB, free: 1.762 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.103e-05/0.5061, allocations: 7.844 kB / 393.3 MB, free: 1.758 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002665/0.5063, allocations: 32.58 kB / 393.3 MB, free: 1.754 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001196/0.5065, allocations: 18.28 kB / 393.3 MB, free: 1.75 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.595e-05/0.5065, allocations: 8.844 kB / 393.3 MB, free: 1.746 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002526/0.5068, allocations: 197.7 kB / 393.5 MB, free: 1.629 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5068, allocations: 3.188 kB / 393.5 MB, free: 1.629 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006383/0.5074, allocations: 122.6 kB / 393.7 MB, free: 1.605 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.0001709/0.5076, allocations: 101.8 kB / 393.8 MB, free: 1.516 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001506/0.5091, allocations: 0.691 MB / 394.4 MB, free: 1.066 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.5091, allocations: 0 / 394.4 MB, free: 1.066 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004882/0.5096, allocations: 227.4 kB / 394.7 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003632/0.51, allocations: 51.11 kB / 394.7 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001053/0.511, allocations: 456.5 kB / 395.2 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002745/0.5113, allocations: 0.7451 MB / 395.9 MB, free: 15.94 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001169/0.5114, allocations: 29.16 kB / 395.9 MB, free: 15.93 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.014e-05/0.5115, allocations: 18.22 kB / 396 MB, free: 15.92 MB / 334.1 MB Notification: Performance of SimCode: time 3.21e-07/0.5115, allocations: 4 kB / 396 MB, free: 15.92 MB / 334.1 MB Notification: Performance of Templates: time 0.01051/0.522, allocations: 4.228 MB / 400.2 MB, free: 15.32 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