Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.00186/0.00186, allocations: 106 kB / 21.18 MB, free: 0.6992 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.002123/0.002123, allocations: 181.2 kB / 24.46 MB, free: 4.059 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.589/1.589, allocations: 207.6 MB / 235.2 MB, free: 10.02 MB / 190.1 MB
"
[Timeout remaining time 178]
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.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5052,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1")
translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5052,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1") [Timeout 660]
"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.001809/0.001809, allocations: 51.92 kB / 347.6 MB, free: 9.578 MB / 286.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.372/0.3738, allocations: 49.16 MB / 396.8 MB, free: 9.52 MB / 318.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003093/0.3769, allocations: 1.837 MB / 398.6 MB, free: 8.246 MB / 318.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001183/0.378, allocations: 0.672 MB / 399.3 MB, free: 7.777 MB / 318.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001048/0.3781, allocations: 7.469 kB / 399.3 MB, free: 7.773 MB / 318.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0001522/0.3783, allocations: 30.41 kB / 399.3 MB, free: 7.75 MB / 318.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0001357/0.3784, allocations: 40.27 kB / 399.4 MB, free: 7.719 MB / 318.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0003217/0.3788, allocations: 82.56 kB / 399.5 MB, free: 7.676 MB / 318.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0002368/0.379, allocations: 176.6 kB / 399.6 MB, free: 7.594 MB / 318.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001779/0.3792, allocations: 58.7 kB / 399.7 MB, free: 7.562 MB / 318.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001263/0.3793, allocations: 77.16 kB / 399.8 MB, free: 7.523 MB / 318.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0001561/0.3795, allocations: 87.27 kB / 399.9 MB, free: 7.48 MB / 318.1 MB
Notification: Performance of NFPackage.collectConstants: time 3.463e-05/0.3795, allocations: 14.38 kB / 399.9 MB, free: 7.48 MB / 318.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 8.179e-05/0.3796, allocations: 24.05 kB / 399.9 MB, free: 7.477 MB / 318.1 MB
Notification: Performance of NFScalarize.scalarize: time 6.83e-05/0.3796, allocations: 43.47 kB / 399.9 MB, free: 7.453 MB / 318.1 MB
Notification: Performance of NFVerifyModel.verify: time 8.273e-05/0.3797, allocations: 92.7 kB / 400 MB, free: 7.387 MB / 318.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0002749/0.38, allocations: 204.9 kB / 400.2 MB, free: 7.297 MB / 318.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.38, allocations: 0.7031 kB / 400.2 MB, free: 7.297 MB / 318.1 MB
Notification: Performance of FrontEnd: time 1.432e-06/0.38, allocations: 0 / 400.2 MB, free: 7.297 MB / 318.1 MB
Notification: Performance of Transformations before backend: time 1.359e-05/0.38, allocations: 1 kB / 400.2 MB, free: 7.297 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: 38
 * Number of variables: 38
Notification: Performance of Generate backend data structure: time 0.0008604/0.3809, allocations: 438.9 kB / 400.7 MB, free: 6.945 MB / 318.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.288e-05/0.3809, allocations: 13.34 kB / 400.7 MB, free: 6.941 MB / 318.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 7.293e-05/0.381, allocations: 27.86 kB / 400.7 MB, free: 6.926 MB / 318.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002476/0.3812, allocations: 183.6 kB / 400.9 MB, free: 6.762 MB / 318.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.161e-05/0.3813, allocations: 10.95 kB / 400.9 MB, free: 6.758 MB / 318.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 3.113e-05/0.3813, allocations: 16.22 kB / 400.9 MB, free: 6.754 MB / 318.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003822/0.3817, allocations: 220.6 kB / 401.1 MB, free: 6.629 MB / 318.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.091e-05/0.3817, allocations: 1.094 kB / 401.1 MB, free: 6.629 MB / 318.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.89e-05/0.3817, allocations: 5.438 kB / 401.1 MB, free: 6.625 MB / 318.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.298e-05/0.3817, allocations: 11.73 kB / 401.1 MB, free: 6.621 MB / 318.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003344/0.3821, allocations: 137.8 kB / 401.3 MB, free: 6.586 MB / 318.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009485/0.383, allocations: 0.7511 MB / 402 MB, free: 5.988 MB / 318.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0006201/0.3836, allocations: 183.5 kB / 402.2 MB, free: 5.926 MB / 318.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.000144/0.3838, allocations: 68.94 kB / 402.3 MB, free: 5.895 MB / 318.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 3.606e-05/0.3838, allocations: 3.016 kB / 402.3 MB, free: 5.895 MB / 318.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002605/0.3841, allocations: 143.6 kB / 402.4 MB, free: 5.809 MB / 318.1 MB
Notification: Performance of pre-optimization done (n=15): time 1.513e-06/0.3841, allocations: 0 / 402.4 MB, free: 5.809 MB / 318.1 MB
Notification: Performance of matching and sorting (n=15): time 0.0005747/0.3846, allocations: 249.5 kB / 402.7 MB, free: 5.711 MB / 318.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 3.278e-05/0.3847, allocations: 81.97 kB / 402.7 MB, free: 5.617 MB / 318.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001857/0.3849, allocations: 224.3 kB / 403 MB, free: 5.465 MB / 318.1 MB
Notification: Performance of collectPreVariables (initialization): time 1.841e-05/0.3849, allocations: 33.73 kB / 403 MB, free: 5.43 MB / 318.1 MB
Notification: Performance of collectInitialEqns (initialization): time 6.032e-05/0.3849, allocations: 135.8 kB / 403.1 MB, free: 5.309 MB / 318.1 MB
Notification: Performance of collectInitialBindings (initialization): time 2.91e-05/0.385, allocations: 49.41 kB / 403.2 MB, free: 5.27 MB / 318.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 7.551e-05/0.385, allocations: 53.78 kB / 403.2 MB, free: 5.238 MB / 318.1 MB
Notification: Performance of setup shared object (initialization): time 5.364e-05/0.3851, allocations: 334.2 kB / 403.5 MB, free: 4.914 MB / 318.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001544/0.3853, allocations: 65.5 kB / 403.6 MB, free: 4.898 MB / 318.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001704/0.3854, allocations: 137.5 kB / 403.7 MB, free: 4.793 MB / 318.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0003053/0.3857, allocations: 210.8 kB / 403.9 MB, free: 4.656 MB / 318.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.3857, allocations: 1 kB / 403.9 MB, free: 4.656 MB / 318.1 MB
Notification: Performance of matching and sorting (n=26) (initialization): time 0.000414/0.3861, allocations: 259.2 kB / 404.2 MB, free: 4.543 MB / 318.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.545e-05/0.3862, allocations: 5.875 kB / 404.2 MB, free: 4.543 MB / 318.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.3862, allocations: 2.219 kB / 404.2 MB, free: 4.543 MB / 318.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.809e-05/0.3862, allocations: 3.344 kB / 404.2 MB, free: 4.543 MB / 318.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001791/0.3864, allocations: 38.39 kB / 404.2 MB, free: 4.539 MB / 318.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.624e-06/0.3864, allocations: 2.688 kB / 404.3 MB, free: 4.539 MB / 318.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001702/0.3865, allocations: 35.2 kB / 404.3 MB, free: 4.523 MB / 318.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.018e-05/0.3866, allocations: 17.38 kB / 404.3 MB, free: 4.516 MB / 318.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.0001194/0.3867, allocations: 155.7 kB / 404.5 MB, free: 4.371 MB / 318.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 2.875e-05/0.3867, allocations: 16.5 kB / 404.5 MB, free: 4.363 MB / 318.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002306/0.3869, allocations: 130 kB / 404.6 MB, free: 4.289 MB / 318.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.157e-06/0.3869, allocations: 2.219 kB / 404.6 MB, free: 4.289 MB / 318.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.387, allocations: 1.094 kB / 404.6 MB, free: 4.289 MB / 318.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.387, allocations: 1.125 kB / 404.6 MB, free: 4.289 MB / 318.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005615/0.3875, allocations: 454.8 kB / 405 MB, free: 3.953 MB / 318.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/0.3875, allocations: 1.156 kB / 405 MB, free: 3.953 MB / 318.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001179/0.3876, allocations: 21.64 kB / 405.1 MB, free: 3.949 MB / 318.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 2.816e-06/0.3876, allocations: 2.281 kB / 405.1 MB, free: 3.949 MB / 318.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.937e-05/0.3877, allocations: 6.688 kB / 405.1 MB, free: 3.945 MB / 318.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.3877, allocations: 5.5 kB / 405.1 MB, free: 3.941 MB / 318.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.3877, allocations: 0.8438 kB / 405.1 MB, free: 3.941 MB / 318.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003852/0.3881, allocations: 286.3 kB / 405.4 MB, free: 3.754 MB / 318.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 2.683e-05/0.3881, allocations: 22.38 kB / 405.4 MB, free: 3.738 MB / 318.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.365e-05/0.3881, allocations: 3.359 kB / 405.4 MB, free: 3.738 MB / 318.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001784/0.3883, allocations: 23.08 kB / 405.4 MB, free: 3.73 MB / 318.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 8.66e-05/0.3884, allocations: 23.94 kB / 405.4 MB, free: 3.723 MB / 318.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.93e-05/0.3884, allocations: 9.094 kB / 405.4 MB, free: 3.719 MB / 318.1 MB
Notification: Performance of sorting global known variables: time 0.0001113/0.3885, allocations: 142.5 kB / 405.6 MB, free: 3.629 MB / 318.1 MB
Notification: Performance of sort global known variables: time 8e-08/0.3885, allocations: 4 kB / 405.6 MB, free: 3.625 MB / 318.1 MB
Notification: Performance of remove unused functions: time 0.0003383/0.3888, allocations: 43.77 kB / 405.6 MB, free: 3.613 MB / 318.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.0001518/0.389, allocations: 107.1 kB / 405.7 MB, free: 3.52 MB / 318.1 MB
Notification: Performance of simCode: created initialization part: time 0.0004594/0.3895, allocations: 167.2 kB / 405.9 MB, free: 3.473 MB / 318.1 MB
Notification: Performance of simCode: created event and clocks part: time 3.407e-06/0.3895, allocations: 4 kB / 405.9 MB, free: 3.469 MB / 318.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0002016/0.3897, allocations: 70.98 kB / 406 MB, free: 3.453 MB / 318.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003458/0.39, allocations: 28.38 kB / 406 MB, free: 3.441 MB / 318.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007055/0.3907, allocations: 376.4 kB / 406.4 MB, free: 3.195 MB / 318.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001842/0.3909, allocations: 0.7373 MB / 407.1 MB, free: 2.492 MB / 318.1 MB
Notification: Performance of simCode: alias equations: time 0.0001089/0.391, allocations: 36.36 kB / 407.1 MB, free: 2.488 MB / 318.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 6.257e-05/0.3911, allocations: 20.55 kB / 407.2 MB, free: 2.48 MB / 318.1 MB
Notification: Performance of SimCode: time 3e-07/0.3911, allocations: 4 kB / 407.2 MB, free: 2.477 MB / 318.1 MB
Notification: Performance of Templates: time 0.005918/0.397, allocations: 2.195 MB / 409.4 MB, free: 1.973 MB / 318.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.makefile [Timeout 660]
(rm -f Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.9965776121243834]