Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00137/0.00137, allocations: 109.5 kB / 20.43 MB, free: 1.449 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001727/0.001727, allocations: 187.4 kB / 23.72 MB, free: 4.68 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.445/1.445, allocations: 225.6 MB / 252.5 MB, free: 12.99 MB / 206.1 MB
"
[Timeout remaining time 178]
Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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=1000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger")
translateModel(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001595/0.001595, allocations: 59.84 kB / 371 MB, free: 9.367 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3014/0.3029, allocations: 52.17 MB / 423.2 MB, free: 14.64 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.004388/0.3073, allocations: 2.787 MB / 425.9 MB, free: 11.84 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.00149/0.3088, allocations: 0.6894 MB / 426.6 MB, free: 11.15 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001896/0.309, allocations: 7.938 kB / 426.6 MB, free: 11.14 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0001645/0.3092, allocations: 39.58 kB / 426.7 MB, free: 11.1 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.000222/0.3094, allocations: 99.25 kB / 426.8 MB, free: 11 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0003235/0.3097, allocations: 87.83 kB / 426.9 MB, free: 10.92 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0004882/0.3102, allocations: 362.5 kB / 427.2 MB, free: 10.56 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001922/0.3104, allocations: 60.91 kB / 427.3 MB, free: 10.5 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.000221/0.3106, allocations: 135.4 kB / 427.4 MB, free: 10.37 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0002283/0.3109, allocations: 151.4 kB / 427.6 MB, free: 10.22 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 5.67e-05/0.3109, allocations: 28 kB / 427.6 MB, free: 10.19 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 5.555e-05/0.311, allocations: 32 kB / 427.6 MB, free: 10.16 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 7.85e-05/0.311, allocations: 63.7 kB / 427.7 MB, free: 10.1 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0001787/0.3112, allocations: 147.3 kB / 427.8 MB, free: 9.953 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0004215/0.3116, allocations: 335.8 kB / 428.1 MB, free: 9.633 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.3116, allocations: 0 / 428.1 MB, free: 9.633 MB / 334.1 MB
Notification: Performance of FrontEnd: time 1.172e-06/0.3116, allocations: 0 / 428.1 MB, free: 9.633 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 6.793e-06/0.3117, allocations: 0 / 428.1 MB, free: 9.633 MB / 334.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.00131/0.313, allocations: 0.5702 MB / 428.7 MB, free: 9.027 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.704e-05/0.313, allocations: 12.03 kB / 428.7 MB, free: 9.016 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 8.156e-05/0.3131, allocations: 32.75 kB / 428.8 MB, free: 8.984 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003893/0.3135, allocations: 229.8 kB / 429 MB, free: 8.734 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.287e-05/0.3135, allocations: 16.81 kB / 429 MB, free: 8.719 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 3.914e-05/0.3135, allocations: 24.38 kB / 429 MB, free: 8.695 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006961/0.3142, allocations: 270.1 kB / 429.3 MB, free: 8.418 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.207e-05/0.3142, allocations: 3.984 kB / 429.3 MB, free: 8.414 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.961e-05/0.3143, allocations: 12 kB / 429.3 MB, free: 8.402 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.597e-06/0.3143, allocations: 4 kB / 429.3 MB, free: 8.398 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008047/0.3151, allocations: 245.5 kB / 429.5 MB, free: 8.156 MB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001783/0.3169, allocations: 0.9136 MB / 430.5 MB, free: 7.18 MB / 334.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0008772/0.3177, allocations: 226.6 kB / 430.7 MB, free: 6.949 MB / 334.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0003519/0.3181, allocations: 100.7 kB / 430.8 MB, free: 6.848 MB / 334.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 2.007e-05/0.3181, allocations: 0 / 430.8 MB, free: 6.848 MB / 334.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005089/0.3186, allocations: 181.8 kB / 431 MB, free: 6.648 MB / 334.1 MB
Notification: Performance of pre-optimization done (n=13): time 1.443e-06/0.3186, allocations: 0 / 431 MB, free: 6.648 MB / 334.1 MB
Notification: Performance of matching and sorting (n=13): time 0.002452/0.3211, allocations: 0.5791 MB / 431.5 MB, free: 6.062 MB / 334.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 7.53e-05/0.3212, allocations: 110.8 kB / 431.6 MB, free: 5.93 MB / 334.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003237/0.3215, allocations: 265.8 kB / 431.9 MB, free: 5.656 MB / 334.1 MB
Notification: Performance of collectPreVariables (initialization): time 3.559e-05/0.3215, allocations: 33.7 kB / 431.9 MB, free: 5.617 MB / 334.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001388/0.3217, allocations: 180 kB / 432.1 MB, free: 5.438 MB / 334.1 MB
Notification: Performance of collectInitialBindings (initialization): time 4.716e-05/0.3217, allocations: 51.62 kB / 432.2 MB, free: 5.387 MB / 334.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 9.234e-05/0.3218, allocations: 45.7 kB / 432.2 MB, free: 5.336 MB / 334.1 MB
Notification: Performance of setup shared object (initialization): time 0.000151/0.3219, allocations: 334.8 kB / 432.5 MB, free: 5 MB / 334.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003739/0.3223, allocations: 103.9 kB / 432.6 MB, free: 4.898 MB / 334.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004254/0.3227, allocations: 186.3 kB / 432.8 MB, free: 4.68 MB / 334.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0007391/0.3235, allocations: 278.1 kB / 433.1 MB, free: 4.371 MB / 334.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.3235, allocations: 4 kB / 433.1 MB, free: 4.367 MB / 334.1 MB
Notification: Performance of matching and sorting (n=26) (initialization): time 0.001314/0.3248, allocations: 443.7 kB / 433.5 MB, free: 3.918 MB / 334.1 MB
Notification: Performance of prepare postOptimizeDAE: time 4.084e-05/0.3248, allocations: 41.77 kB / 433.6 MB, free: 3.871 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.3248, allocations: 0 / 433.6 MB, free: 3.871 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0003769/0.3252, allocations: 76.8 kB / 433.6 MB, free: 3.793 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002047/0.3254, allocations: 43.91 kB / 433.7 MB, free: 3.75 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003211/0.3286, allocations: 1.911 MB / 435.6 MB, free: 1.723 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003685/0.329, allocations: 47.81 kB / 435.6 MB, free: 1.676 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.68e-05/0.329, allocations: 8 kB / 435.6 MB, free: 1.668 MB / 334.1 MB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 10
 * 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 (21):
 * Single equations (assignments): 19
 * 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.0001759/0.3292, allocations: 141.7 kB / 435.8 MB, free: 1.52 MB / 334.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 4.321e-05/0.3293, allocations: 31.78 kB / 435.8 MB, free: 1.488 MB / 334.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.124e-05/0.3293, allocations: 29.78 kB / 435.8 MB, free: 1.457 MB / 334.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.804e-06/0.3293, allocations: 0 / 435.8 MB, free: 1.457 MB / 334.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 2.635e-06/0.3293, allocations: 0 / 435.8 MB, free: 1.457 MB / 334.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.094e-06/0.3293, allocations: 3.984 kB / 435.9 MB, free: 1.453 MB / 334.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003056/0.3296, allocations: 264.6 kB / 436.1 MB, free: 1.152 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.235e-06/0.3296, allocations: 0 / 436.1 MB, free: 1.152 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001491/0.3298, allocations: 23.97 kB / 436.1 MB, free: 1.129 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.0002961/0.3301, allocations: 76.8 kB / 436.2 MB, free: 1.051 MB / 334.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.996e-05/0.3301, allocations: 7.938 kB / 436.2 MB, free: 1.043 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002706/0.3328, allocations: 1.812 MB / 438 MB, free: 15.12 MB / 350.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.732e-06/0.3328, allocations: 3.938 kB / 438 MB, free: 15.12 MB / 350.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001134/0.3339, allocations: 361.5 kB / 438.4 MB, free: 14.74 MB / 350.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 5.065e-05/0.334, allocations: 27.78 kB / 438.4 MB, free: 14.71 MB / 350.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.972e-05/0.334, allocations: 4 kB / 438.4 MB, free: 14.71 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002656/0.3343, allocations: 35.91 kB / 438.5 MB, free: 14.68 MB / 350.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 8.798e-05/0.3344, allocations: 23.97 kB / 438.5 MB, free: 14.65 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.667e-05/0.3344, allocations: 7.984 kB / 438.5 MB, free: 14.64 MB / 350.1 MB
Notification: Performance of sorting global known variables: time 0.0002135/0.3346, allocations: 185.2 kB / 438.7 MB, free: 14.46 MB / 350.1 MB
Notification: Performance of sort global known variables: time 6e-08/0.3346, allocations: 0 / 438.7 MB, free: 14.46 MB / 350.1 MB
Notification: Performance of remove unused functions: time 0.000424/0.335, allocations: 75.89 kB / 438.7 MB, free: 14.39 MB / 350.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.0001511/0.3352, allocations: 103.2 kB / 438.8 MB, free: 14.28 MB / 350.1 MB
Notification: Performance of simCode: created initialization part: time 0.001431/0.3366, allocations: 481.7 kB / 439.3 MB, free: 13.78 MB / 350.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.3366, allocations: 448 / 439.3 MB, free: 13.78 MB / 350.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0005135/0.3371, allocations: 226.6 kB / 439.5 MB, free: 13.55 MB / 350.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003268/0.3375, allocations: 44.36 kB / 439.6 MB, free: 13.5 MB / 350.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003232/0.3407, allocations: 0.8983 MB / 440.5 MB, free: 12.58 MB / 350.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004227/0.3411, allocations: 0.744 MB / 441.2 MB, free: 11.81 MB / 350.1 MB
Notification: Performance of simCode: alias equations: time 0.0001114/0.3412, allocations: 22.3 kB / 441.2 MB, free: 11.79 MB / 350.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 5.954e-05/0.3413, allocations: 19.44 kB / 441.3 MB, free: 11.77 MB / 350.1 MB
Notification: Performance of SimCode: time 7.31e-07/0.3413, allocations: 0 / 441.3 MB, free: 11.77 MB / 350.1 MB
Notification: Performance of Templates: time 0.008875/0.3502, allocations: 4 MB / 445.3 MB, free: 7.812 MB / 350.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.makefile [Timeout 660]
(rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/InvertingSchmittTrigger/InvertingSchmittTrigger.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660]
""
[Timeout remaining time 660]
Reference file matches
[Calling sys.exit(0), Time elapsed: 4.6801951630041]