Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.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.001943/0.001943, allocations: 109.6 kB / 20.43 MB, free: 1.309 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.002256/0.002256, allocations: 190.5 kB / 23.72 MB, free: 4.555 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.5/1.5, allocations: 225.6 MB / 252.5 MB, free: 13.02 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.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5052,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1")
translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5052,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001539/0.001539, allocations: 51.86 kB / 370.9 MB, free: 9.332 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2769/0.2785, allocations: 52.19 MB / 423.1 MB, free: 14.66 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003355/0.2818, allocations: 1.843 MB / 425 MB, free: 12.81 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001227/0.2831, allocations: 0.6311 MB / 425.6 MB, free: 12.18 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 9.311e-05/0.2832, allocations: 3.938 kB / 425.6 MB, free: 12.18 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0001316/0.2833, allocations: 31.66 kB / 425.6 MB, free: 12.14 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0001834/0.2835, allocations: 35.61 kB / 425.7 MB, free: 12.11 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0002923/0.2838, allocations: 87.84 kB / 425.7 MB, free: 12.02 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0002574/0.284, allocations: 183.4 kB / 425.9 MB, free: 11.84 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001634/0.2842, allocations: 46.94 kB / 426 MB, free: 11.79 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.000123/0.2843, allocations: 75.7 kB / 426 MB, free: 11.71 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0001657/0.2845, allocations: 87.55 kB / 426.1 MB, free: 11.63 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 3.8e-05/0.2845, allocations: 16 kB / 426.1 MB, free: 11.61 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 8.124e-05/0.2846, allocations: 23.98 kB / 426.2 MB, free: 11.59 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 7.804e-05/0.2847, allocations: 47.83 kB / 426.2 MB, free: 11.54 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 9.59e-05/0.2848, allocations: 83.48 kB / 426.3 MB, free: 11.46 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0002828/0.2851, allocations: 200.3 kB / 426.5 MB, free: 11.27 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 3.307e-06/0.2851, allocations: 4 kB / 426.5 MB, free: 11.27 MB / 334.1 MB
Notification: Performance of FrontEnd: time 1.323e-06/0.2851, allocations: 0 / 426.5 MB, free: 11.27 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 5.641e-06/0.2851, allocations: 4 kB / 426.5 MB, free: 11.27 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: 38
 * Number of variables: 38
Notification: Performance of Generate backend data structure: time 0.0009166/0.286, allocations: 441.2 kB / 426.9 MB, free: 10.8 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.836e-05/0.286, allocations: 16.02 kB / 426.9 MB, free: 10.79 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 5.768e-05/0.2861, allocations: 20.8 kB / 427 MB, free: 10.77 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002809/0.2864, allocations: 182.2 kB / 427.1 MB, free: 10.57 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.352e-05/0.2864, allocations: 16.38 kB / 427.2 MB, free: 10.55 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 2.814e-05/0.2864, allocations: 15.94 kB / 427.2 MB, free: 10.54 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004336/0.2868, allocations: 209.9 kB / 427.4 MB, free: 10.31 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.015e-05/0.2869, allocations: 0 / 427.4 MB, free: 10.31 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.547e-05/0.2869, allocations: 8 kB / 427.4 MB, free: 10.3 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.116e-05/0.2869, allocations: 11.98 kB / 427.4 MB, free: 10.29 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003381/0.2872, allocations: 143.8 kB / 427.5 MB, free: 10.15 MB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001145/0.2884, allocations: 0.7534 MB / 428.3 MB, free: 9.34 MB / 334.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0006473/0.289, allocations: 178.7 kB / 428.5 MB, free: 9.156 MB / 334.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001683/0.2892, allocations: 72.75 kB / 428.5 MB, free: 9.082 MB / 334.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 3.172e-05/0.2892, allocations: 0 / 428.5 MB, free: 9.082 MB / 334.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002838/0.2895, allocations: 145 kB / 428.7 MB, free: 8.922 MB / 334.1 MB
Notification: Performance of pre-optimization done (n=15): time 1.262e-06/0.2895, allocations: 0 / 428.7 MB, free: 8.922 MB / 334.1 MB
Notification: Performance of matching and sorting (n=15): time 0.0006376/0.2902, allocations: 257.4 kB / 428.9 MB, free: 8.664 MB / 334.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 6.723e-05/0.2902, allocations: 84.98 kB / 429 MB, free: 8.562 MB / 334.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000238/0.2905, allocations: 222.9 kB / 429.2 MB, free: 8.336 MB / 334.1 MB
Notification: Performance of collectPreVariables (initialization): time 2.93e-05/0.2905, allocations: 33.64 kB / 429.3 MB, free: 8.297 MB / 334.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001053/0.2906, allocations: 132.4 kB / 429.4 MB, free: 8.164 MB / 334.1 MB
Notification: Performance of collectInitialBindings (initialization): time 4.087e-05/0.2906, allocations: 35.73 kB / 429.4 MB, free: 8.129 MB / 334.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 8.834e-05/0.2907, allocations: 65.58 kB / 429.5 MB, free: 8.059 MB / 334.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001591/0.2909, allocations: 330.8 kB / 429.8 MB, free: 7.727 MB / 334.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001652/0.291, allocations: 67.95 kB / 429.9 MB, free: 7.66 MB / 334.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002055/0.2912, allocations: 128.5 kB / 430 MB, free: 7.504 MB / 334.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0003829/0.2916, allocations: 224.3 kB / 430.2 MB, free: 7.254 MB / 334.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.2916, allocations: 0 / 430.2 MB, free: 7.254 MB / 334.1 MB
Notification: Performance of matching and sorting (n=26) (initialization): time 0.000469/0.2921, allocations: 245.2 kB / 430.5 MB, free: 7.008 MB / 334.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.463e-05/0.2921, allocations: 4 kB / 430.5 MB, free: 7.004 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/0.2921, allocations: 8.25 kB / 430.5 MB, free: 6.996 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.718e-05/0.2921, allocations: 4 kB / 430.5 MB, free: 6.992 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001777/0.2923, allocations: 43.91 kB / 430.5 MB, free: 6.949 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.445e-05/0.2923, allocations: 7.922 kB / 430.5 MB, free: 6.941 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000177/0.2925, allocations: 35.83 kB / 430.6 MB, free: 6.906 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.807e-05/0.2925, allocations: 8 kB / 430.6 MB, free: 6.898 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: 25 (product.y,product.u[2],product.u[1],sum.u[1],triggeredAdd.y,$PRE.triggeredAdd.y,$whenCondition3,$whenCondition2,multiSwitch1.expr[2],multiSwitch1.expr[1],booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,multiSwitch1.firstActiveIndex,multiSwitch1.y,$PRE.multiSwitch1.y,multiSwitch1.u[2],multiSwitch1.u[1],booleanPulse1.pulseStart,$PRE.booleanPulse1.pulseStart,$whenCondition1,triggeredAdd.local_set,triggeredAdd.local_reset,showValue2.number,showValue1.number,showValue.number)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (26):
 * Single equations (assignments): 26
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 0
 * Mixed (continuous/discrete) equation systems: 0
Notification: Performance of prepare postOptimizeDAE: time 0.0001533/0.2927, allocations: 147.7 kB / 430.7 MB, free: 6.746 MB / 334.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 3.309e-05/0.2927, allocations: 23.91 kB / 430.7 MB, free: 6.723 MB / 334.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002616/0.293, allocations: 135.3 kB / 430.9 MB, free: 6.582 MB / 334.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.336e-06/0.293, allocations: 0 / 430.9 MB, free: 6.582 MB / 334.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 1.41e-05/0.293, allocations: 7.938 kB / 430.9 MB, free: 6.574 MB / 334.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.581e-06/0.293, allocations: 7.922 kB / 430.9 MB, free: 6.566 MB / 334.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006509/0.2937, allocations: 445.4 kB / 431.3 MB, free: 6.082 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.2937, allocations: 320 / 431.3 MB, free: 6.082 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001216/0.2938, allocations: 19.92 kB / 431.3 MB, free: 6.062 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 9.738e-06/0.2938, allocations: 11.94 kB / 431.4 MB, free: 6.051 MB / 334.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.569e-05/0.2938, allocations: 4 kB / 431.4 MB, free: 6.047 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.794e-06/0.2938, allocations: 0 / 431.4 MB, free: 6.047 MB / 334.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.2938, allocations: 4 kB / 431.4 MB, free: 6.043 MB / 334.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004573/0.2943, allocations: 291.9 kB / 431.7 MB, free: 5.742 MB / 334.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 3.321e-05/0.2943, allocations: 23.84 kB / 431.7 MB, free: 5.719 MB / 334.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.313e-05/0.2943, allocations: 4 kB / 431.7 MB, free: 5.715 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001757/0.2945, allocations: 15.98 kB / 431.7 MB, free: 5.699 MB / 334.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 7.415e-05/0.2946, allocations: 23.95 kB / 431.7 MB, free: 5.676 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.749e-05/0.2946, allocations: 4 kB / 431.7 MB, free: 5.672 MB / 334.1 MB
Notification: Performance of sorting global known variables: time 0.0001372/0.2947, allocations: 148.5 kB / 431.9 MB, free: 5.527 MB / 334.1 MB
Notification: Performance of sort global known variables: time 7e-08/0.2947, allocations: 0 / 431.9 MB, free: 5.527 MB / 334.1 MB
Notification: Performance of remove unused functions: time 0.0003011/0.295, allocations: 47.88 kB / 431.9 MB, free: 5.48 MB / 334.1 MB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 2
 * Number of states: 0 ()
 * Number of discrete variables: 14 (multiSwitch1.u[1],$whenCondition3,$whenCondition2,$whenCondition1,triggeredAdd.y,booleanPulse1.pulseStart,multiSwitch1.u[2],multiSwitch1.y,multiSwitch1.firstActiveIndex,booleanPulse2.pulseStart,sum.u[1],product.u[1],product.u[2],product.y)
 * Number of discrete states: 2 (multiSwitch1.y,triggeredAdd.y)
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (15):
 * Single equations (assignments): 12
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 3
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 0
 * Mixed (continuous/discrete) equation systems: 0
Notification: Performance of Backend phase and start with SimCode phase: time 0.0001541/0.2952, allocations: 103.8 kB / 432 MB, free: 5.371 MB / 334.1 MB
Notification: Performance of simCode: created initialization part: time 0.0004132/0.2956, allocations: 159.8 kB / 432.2 MB, free: 5.215 MB / 334.1 MB
Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.2956, allocations: 0 / 432.2 MB, free: 5.215 MB / 334.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0002029/0.2958, allocations: 75.89 kB / 432.2 MB, free: 5.141 MB / 334.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003396/0.2961, allocations: 36.08 kB / 432.3 MB, free: 5.109 MB / 334.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007057/0.2969, allocations: 369.5 kB / 432.6 MB, free: 4.715 MB / 334.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003769/0.2972, allocations: 0.7398 MB / 433.4 MB, free: 3.949 MB / 334.1 MB
Notification: Performance of simCode: alias equations: time 0.0001007/0.2973, allocations: 29.62 kB / 433.4 MB, free: 3.922 MB / 334.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 6.439e-05/0.2974, allocations: 27.42 kB / 433.4 MB, free: 3.895 MB / 334.1 MB
Notification: Performance of SimCode: time 4.11e-07/0.2974, allocations: 0 / 433.4 MB, free: 3.895 MB / 334.1 MB
Notification: Performance of Templates: time 0.005812/0.3032, allocations: 2.183 MB / 435.6 MB, free: 1.719 MB / 334.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.makefile [Timeout 660]
(rm -f Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.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.630200386047363]