Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001563/0.001563, allocations: 116.8 kB / 19.17 MB, free: 3.895 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001692/0.001692, allocations: 214.6 kB / 22.13 MB, free: 0.9414 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.454/1.454, allocations: 230.2 MB / 255.2 MB, free: 15.25 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5052,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1") translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5052,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001851/0.001851, allocations: 63.89 kB / 374.5 MB, free: 10.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09566/0.09751, allocations: 53.32 MB / 427.8 MB, free: 4.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003283/0.1008, allocations: 1.859 MB / 429.7 MB, free: 2.723 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001292/0.1021, allocations: 0.6894 MB / 430.4 MB, free: 2.027 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.427e-05/0.1022, allocations: 7.938 kB / 430.4 MB, free: 2.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000131/0.1023, allocations: 35.66 kB / 430.4 MB, free: 1.984 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001341/0.1024, allocations: 35.66 kB / 430.5 MB, free: 1.949 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00031/0.1028, allocations: 91.77 kB / 430.6 MB, free: 1.859 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002611/0.103, allocations: 171.5 kB / 430.7 MB, free: 1.691 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001729/0.1032, allocations: 58.58 kB / 430.8 MB, free: 1.629 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001708/0.1034, allocations: 79.7 kB / 430.9 MB, free: 1.551 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001666/0.1035, allocations: 87.55 kB / 430.9 MB, free: 1.465 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.419e-05/0.1036, allocations: 20 kB / 431 MB, free: 1.445 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.585e-05/0.1036, allocations: 31.92 kB / 431 MB, free: 1.414 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.868e-05/0.1037, allocations: 39.84 kB / 431 MB, free: 1.375 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001023/0.1038, allocations: 91.45 kB / 431.1 MB, free: 1.285 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003023/0.1041, allocations: 203 kB / 431.3 MB, free: 1.086 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.122e-06/0.1041, allocations: 4 kB / 431.3 MB, free: 1.082 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1041, allocations: 0 / 431.3 MB, free: 1.082 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.1041, allocations: 0 / 431.3 MB, free: 1.082 MB / 350.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.0009979/0.1051, allocations: 0.514 MB / 431.8 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.606e-05/0.1052, allocations: 16.02 kB / 431.8 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001583/0.1053, allocations: 36.72 kB / 431.9 MB, free: 480 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000318/0.1056, allocations: 248.8 kB / 432.1 MB, free: 188 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.053e-05/0.1057, allocations: 16.38 kB / 432.1 MB, free: 172 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.374e-05/0.1057, allocations: 16.38 kB / 432.2 MB, free: 156 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1914/0.2971, allocations: 204.3 kB / 432.4 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.914e-05/0.2971, allocations: 3.438 kB / 432.4 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.341e-05/0.2971, allocations: 3.781 kB / 432.4 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.601e-05/0.2972, allocations: 7.141 kB / 432.4 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003925/0.2975, allocations: 142.4 kB / 432.5 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009899/0.2985, allocations: 0.7764 MB / 433.3 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006146/0.2991, allocations: 182.7 kB / 433.5 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001352/0.2993, allocations: 65.94 kB / 433.5 MB, free: 10.9 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.228e-05/0.2993, allocations: 3.906 kB / 433.5 MB, free: 10.9 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002359/0.2996, allocations: 146.5 kB / 433.7 MB, free: 10.84 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.673e-06/0.2996, allocations: 0 / 433.7 MB, free: 10.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005793/0.3001, allocations: 242.9 kB / 433.9 MB, free: 10.8 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.33e-05/0.3002, allocations: 90.56 kB / 434 MB, free: 10.7 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001673/0.3003, allocations: 225.8 kB / 434.2 MB, free: 10.59 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.911e-05/0.3004, allocations: 30.27 kB / 434.3 MB, free: 10.56 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.533e-05/0.3004, allocations: 135.8 kB / 434.4 MB, free: 10.46 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.859e-05/0.3004, allocations: 43.58 kB / 434.4 MB, free: 10.44 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.142e-05/0.3005, allocations: 58.5 kB / 434.5 MB, free: 10.43 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.109e-05/0.3006, allocations: 331.5 kB / 434.8 MB, free: 10.11 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001387/0.3007, allocations: 67.58 kB / 434.9 MB, free: 10.11 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001494/0.3009, allocations: 132 kB / 435 MB, free: 10.04 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002833/0.3011, allocations: 212.9 kB / 435.2 MB, free: 9.957 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.3011, allocations: 5.188 kB / 435.2 MB, free: 9.957 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004104/0.3016, allocations: 249.7 kB / 435.5 MB, free: 9.914 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.518e-05/0.3016, allocations: 5 kB / 435.5 MB, free: 9.914 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.3016, allocations: 3.156 kB / 435.5 MB, free: 9.914 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.316e-05/0.3016, allocations: 4.719 kB / 435.5 MB, free: 9.914 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001681/0.3018, allocations: 46.12 kB / 435.5 MB, free: 9.914 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.778e-06/0.3018, allocations: 7.469 kB / 435.5 MB, free: 9.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001625/0.3019, allocations: 31.12 kB / 435.6 MB, free: 9.906 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.631e-05/0.302, allocations: 11.64 kB / 435.6 MB, free: 9.906 MB / 350.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.000102/0.3021, allocations: 142.9 kB / 435.7 MB, free: 9.793 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.988e-05/0.3021, allocations: 22.92 kB / 435.7 MB, free: 9.781 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002235/0.3023, allocations: 134.6 kB / 435.9 MB, free: 9.738 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.558e-06/0.3023, allocations: 3.531 kB / 435.9 MB, free: 9.738 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.3023, allocations: 4.5 kB / 435.9 MB, free: 9.734 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.96e-06/0.3023, allocations: 2.969 kB / 435.9 MB, free: 9.734 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004758/0.3028, allocations: 476.3 kB / 436.3 MB, free: 9.441 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.3028, allocations: 0 / 436.3 MB, free: 9.441 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001147/0.3029, allocations: 25.88 kB / 436.4 MB, free: 9.441 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/0.3029, allocations: 6.5 kB / 436.4 MB, free: 9.438 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.497e-05/0.3029, allocations: 3.156 kB / 436.4 MB, free: 9.438 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.3029, allocations: 1.031 kB / 436.4 MB, free: 9.438 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.3029, allocations: 4.562 kB / 436.4 MB, free: 9.438 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003586/0.3033, allocations: 287.5 kB / 436.7 MB, free: 9.289 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.177e-05/0.3033, allocations: 97.92 kB / 436.8 MB, free: 9.184 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.866e-05/0.3034, allocations: 3.062 kB / 436.8 MB, free: 9.184 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001703/0.3035, allocations: 23.34 kB / 436.8 MB, free: 9.184 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.775e-05/0.3036, allocations: 24.38 kB / 436.8 MB, free: 9.184 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.938e-05/0.3036, allocations: 6.75 kB / 436.8 MB, free: 9.184 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001023/0.3037, allocations: 149.7 kB / 437 MB, free: 9.109 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3037, allocations: 0 / 437 MB, free: 9.109 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003116/0.304, allocations: 41.36 kB / 437 MB, free: 9.105 MB / 350.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.0001242/0.3042, allocations: 115.6 kB / 437.1 MB, free: 9.008 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004347/0.3046, allocations: 163 kB / 437.3 MB, free: 9.008 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3046, allocations: 0 / 437.3 MB, free: 9.008 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001993/0.3048, allocations: 72.14 kB / 437.3 MB, free: 9.008 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003643/0.3052, allocations: 33.17 kB / 437.4 MB, free: 9.004 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007924/0.306, allocations: 402.4 kB / 437.8 MB, free: 8.758 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002161/0.3062, allocations: 0.7335 MB / 438.5 MB, free: 8.062 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.38e-05/0.3062, allocations: 25.72 kB / 438.5 MB, free: 8.051 MB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.3062, allocations: 1.438 kB / 438.5 MB, free: 8.051 MB / 350.1 MB Notification: Performance of Templates: time 0.005182/0.3114, allocations: 2.471 MB / 441 MB, free: 7.867 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.sim & ./Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 7.305431609973311]