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.001139/0.001139, allocations: 105.2 kB / 17.73 MB, free: 5.238 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.001288/0.001288, allocations: 187.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.688/1.688, 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.001282/0.001282, allocations: 47.94 kB / 328.6 MB, free: 3.273 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1405/0.1418, allocations: 46.61 MB / 375.2 MB, free: 4.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger): time 0.005521/0.1474, allocations: 2.715 MB / 377.9 MB, free: 1.824 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001452/0.1489, allocations: 0.7212 MB / 378.6 MB, free: 1.094 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001768/0.1491, allocations: 4 kB / 378.6 MB, free: 1.09 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001824/0.1493, allocations: 39.58 kB / 378.6 MB, free: 1.051 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002162/0.1496, allocations: 103.2 kB / 378.8 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003533/0.1499, allocations: 95.81 kB / 378.8 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000497/0.1504, allocations: 354.5 kB / 379.2 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003114/0.1507, allocations: 88.69 kB / 379.3 MB, free: 432 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002709/0.151, allocations: 135.5 kB / 379.4 MB, free: 296 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000297/0.1513, allocations: 151.3 kB / 379.6 MB, free: 144 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.894e-05/0.1514, allocations: 32 kB / 379.6 MB, free: 112 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.212e-05/0.1515, allocations: 28 kB / 379.6 MB, free: 84 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001051/0.1516, allocations: 67.7 kB / 379.7 MB, free: 16 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.3282/0.4798, allocations: 140.6 kB / 379.8 MB, free: 10.11 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006288/0.4805, allocations: 328.8 kB / 380.1 MB, free: 10.08 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.032e-06/0.4805, allocations: 0 / 380.1 MB, free: 10.08 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.4805, allocations: 2.406 kB / 380.1 MB, free: 10.08 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.031e-05/0.4805, allocations: 0 / 380.1 MB, free: 10.08 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.001389/0.4819, allocations: 0.6355 MB / 380.8 MB, free: 9.621 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.07e-05/0.482, allocations: 11.53 kB / 380.8 MB, free: 9.621 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.057e-05/0.4821, allocations: 30.97 kB / 380.8 MB, free: 9.605 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004056/0.4825, allocations: 285.5 kB / 381.1 MB, free: 9.375 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.528e-05/0.4825, allocations: 16.25 kB / 381.1 MB, free: 9.375 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.485e-05/0.4826, allocations: 17.2 kB / 381.1 MB, free: 9.375 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006815/0.4833, allocations: 248.6 kB / 381.4 MB, free: 9.336 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.58e-05/0.4833, allocations: 3.938 kB / 381.4 MB, free: 9.332 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.114e-05/0.4834, allocations: 9.438 kB / 381.4 MB, free: 9.332 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.003e-05/0.4834, allocations: 5.25 kB / 381.4 MB, free: 9.332 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007736/0.4841, allocations: 242.7 kB / 381.6 MB, free: 9.332 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00165/0.4858, allocations: 0.8692 MB / 382.5 MB, free: 8.93 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009093/0.4867, allocations: 239.6 kB / 382.7 MB, free: 8.906 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003907/0.4871, allocations: 107.8 kB / 382.8 MB, free: 8.895 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.758e-05/0.4872, allocations: 2.562 kB / 382.8 MB, free: 8.895 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005216/0.4877, allocations: 182.7 kB / 383 MB, free: 8.816 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 1.382e-06/0.4877, allocations: 1.5 kB / 383 MB, free: 8.816 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.002654/0.4904, allocations: 0.6711 MB / 383.7 MB, free: 8.652 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.174e-05/0.4904, allocations: 108.6 kB / 383.8 MB, free: 8.527 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003405/0.4908, allocations: 271.5 kB / 384.1 MB, free: 8.414 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.181e-05/0.4908, allocations: 27.95 kB / 384.1 MB, free: 8.383 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001074/0.4909, allocations: 180.6 kB / 384.3 MB, free: 8.266 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.635e-05/0.491, allocations: 40.16 kB / 384.3 MB, free: 8.242 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.354e-05/0.4911, allocations: 42.77 kB / 384.3 MB, free: 8.223 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.806e-05/0.4911, allocations: 337.7 kB / 384.7 MB, free: 7.906 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003627/0.4915, allocations: 104.1 kB / 384.8 MB, free: 7.895 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003806/0.4919, allocations: 160.5 kB / 384.9 MB, free: 7.82 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006807/0.4926, allocations: 265.5 kB / 385.2 MB, free: 7.73 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.4926, allocations: 0 / 385.2 MB, free: 7.73 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.001341/0.494, allocations: 433 kB / 385.6 MB, free: 7.637 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.952e-05/0.494, allocations: 33.86 kB / 385.6 MB, free: 7.605 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.102e-05/0.494, allocations: 2.969 kB / 385.7 MB, free: 7.605 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004539/0.4945, allocations: 85.36 kB / 385.7 MB, free: 7.594 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001964/0.4947, allocations: 36.89 kB / 385.8 MB, free: 7.594 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002823/0.4975, allocations: 1.967 MB / 387.7 MB, free: 6.066 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003622/0.4979, allocations: 46.47 kB / 387.8 MB, free: 6.059 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.546e-05/0.4979, allocations: 8.109 kB / 387.8 MB, free: 6.059 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003595/0.4983, allocations: 179.5 kB / 388 MB, free: 5.973 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000295/0.4986, allocations: 142.2 kB / 388.1 MB, free: 5.898 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005059/0.4991, allocations: 228.2 kB / 388.3 MB, free: 5.781 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.753e-06/0.4991, allocations: 4 kB / 388.3 MB, free: 5.777 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization_lambda0): time 0.0008449/0.5, allocations: 320 kB / 388.6 MB, free: 5.629 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.878e-05/0.5, allocations: 33.38 kB / 388.7 MB, free: 5.598 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.164e-06/0.5001, allocations: 6.766 kB / 388.7 MB, free: 5.594 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001653/0.5002, allocations: 31.52 kB / 388.7 MB, free: 5.582 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001973/0.5004, allocations: 38.59 kB / 388.8 MB, free: 5.582 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009805/0.5014, allocations: 1.624 MB / 390.4 MB, free: 3.992 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003057/0.5017, allocations: 48.33 kB / 390.4 MB, free: 3.977 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.364e-05/0.5018, allocations: 10.38 kB / 390.4 MB, free: 3.973 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.0001561/0.502, allocations: 194.2 kB / 390.6 MB, free: 3.781 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.263e-05/0.502, allocations: 23.38 kB / 390.6 MB, free: 3.77 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.101e-05/0.5021, allocations: 27.59 kB / 390.7 MB, free: 3.75 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.5021, allocations: 1.156 kB / 390.7 MB, free: 3.75 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.596e-06/0.5021, allocations: 0.7969 kB / 390.7 MB, free: 3.75 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.5021, allocations: 2.047 kB / 390.7 MB, free: 3.75 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003058/0.5024, allocations: 302.9 kB / 391 MB, free: 3.508 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.5024, allocations: 5.188 kB / 391 MB, free: 3.504 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001415/0.5026, allocations: 21.86 kB / 391 MB, free: 3.504 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002773/0.5028, allocations: 71.12 kB / 391.1 MB, free: 3.488 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.823e-05/0.5029, allocations: 6.5 kB / 391.1 MB, free: 3.484 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002195/0.5051, allocations: 1.762 MB / 392.8 MB, free: 1.988 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.5051, allocations: 0.75 kB / 392.8 MB, free: 1.988 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00112/0.5062, allocations: 355.4 kB / 393.2 MB, free: 1.852 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.652e-05/0.5063, allocations: 100.6 kB / 393.3 MB, free: 1.742 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.895e-05/0.5063, allocations: 2.781 kB / 393.3 MB, free: 1.742 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002591/0.5066, allocations: 32.69 kB / 393.3 MB, free: 1.738 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.348e-05/0.5067, allocations: 22.27 kB / 393.3 MB, free: 1.734 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.742e-05/0.5067, allocations: 4.359 kB / 393.3 MB, free: 1.734 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002445/0.507, allocations: 201.5 kB / 393.5 MB, free: 1.613 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.507, allocations: 0 / 393.5 MB, free: 1.613 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006271/0.5076, allocations: 123 kB / 393.7 MB, free: 1.59 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.0001571/0.5078, allocations: 104.8 kB / 393.8 MB, free: 1.5 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001597/0.5094, allocations: 0.6889 MB / 394.5 MB, free: 1.055 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/0.5094, allocations: 1.719 kB / 394.5 MB, free: 1.055 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004909/0.5099, allocations: 237.9 kB / 394.7 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003637/0.5103, allocations: 49.12 kB / 394.7 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001207/0.5115, allocations: 449.5 kB / 395.2 MB, free: 0.625 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003114/0.5118, allocations: 0.7483 MB / 395.9 MB, free: 15.92 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001523/0.512, allocations: 24.39 kB / 395.9 MB, free: 15.91 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.364e-05/0.5121, allocations: 22.97 kB / 396 MB, free: 15.91 MB / 334.1 MB Notification: Performance of SimCode: time 2.11e-07/0.5121, allocations: 0 / 396 MB, free: 15.91 MB / 334.1 MB Notification: Performance of Templates: time 0.01306/0.5251, allocations: 4.235 MB / 400.2 MB, free: 15.28 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