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.001562/0.001562, allocations: 113 kB / 19.04 MB, free: 3.254 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.001816/0.001816, allocations: 197.9 kB / 22.22 MB, free: 72 kB / 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.456/1.456, allocations: 225.6 MB / 250.8 MB, free: 13.34 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.001497/0.001497, allocations: 51.92 kB / 368.7 MB, free: 10.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2846/0.2861, allocations: 52.14 MB / 420.9 MB, free: 15.08 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003504/0.2896, allocations: 1.847 MB / 422.7 MB, free: 13.22 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001313/0.2909, allocations: 0.6309 MB / 423.3 MB, free: 12.59 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001038/0.291, allocations: 8 kB / 423.3 MB, free: 12.58 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001526/0.2912, allocations: 35.66 kB / 423.4 MB, free: 12.55 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001408/0.2913, allocations: 23.73 kB / 423.4 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000381/0.2917, allocations: 91.77 kB / 423.5 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002661/0.2919, allocations: 175.4 kB / 423.7 MB, free: 12.26 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000192/0.2921, allocations: 58.3 kB / 423.7 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001294/0.2923, allocations: 67.72 kB / 423.8 MB, free: 12.13 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000169/0.2924, allocations: 91.53 kB / 423.9 MB, free: 12.04 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.283e-05/0.2925, allocations: 16 kB / 423.9 MB, free: 12.03 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001608/0.2926, allocations: 27.98 kB / 423.9 MB, free: 12 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.409e-05/0.2927, allocations: 43.78 kB / 424 MB, free: 11.96 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.79e-05/0.2928, allocations: 91.45 kB / 424 MB, free: 11.87 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003125/0.2931, allocations: 197.7 kB / 424.2 MB, free: 11.68 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.2931, allocations: 0 / 424.2 MB, free: 11.68 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2931, allocations: 0 / 424.2 MB, free: 11.68 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.404e-06/0.2931, allocations: 0 / 424.2 MB, free: 11.68 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.001018/0.2941, allocations: 0.514 MB / 424.8 MB, free: 11.12 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.99e-05/0.2942, allocations: 12.03 kB / 424.8 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.436e-05/0.2942, allocations: 20.8 kB / 424.8 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003056/0.2946, allocations: 240.5 kB / 425 MB, free: 10.81 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.744e-05/0.2946, allocations: 12.38 kB / 425 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.079e-05/0.2946, allocations: 31.91 kB / 425.1 MB, free: 10.77 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004173/0.295, allocations: 214.2 kB / 425.3 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.291e-05/0.295, allocations: 0 / 425.3 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.407e-05/0.2951, allocations: 8 kB / 425.3 MB, free: 10.53 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.112e-05/0.2951, allocations: 8 kB / 425.3 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004119/0.2955, allocations: 139.7 kB / 425.4 MB, free: 10.39 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001167/0.2967, allocations: 0.7895 MB / 426.2 MB, free: 9.535 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000704/0.2974, allocations: 182.7 kB / 426.4 MB, free: 9.348 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000145/0.2975, allocations: 56.83 kB / 426.5 MB, free: 9.289 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.309e-05/0.2976, allocations: 4 kB / 426.5 MB, free: 9.285 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002903/0.2979, allocations: 149 kB / 426.6 MB, free: 9.121 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.252e-06/0.2979, allocations: 0 / 426.6 MB, free: 9.121 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.000617/0.2985, allocations: 241.4 kB / 426.8 MB, free: 8.879 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001585/0.2986, allocations: 92.97 kB / 426.9 MB, free: 8.77 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002247/0.2989, allocations: 211 kB / 427.1 MB, free: 8.551 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.813e-05/0.2989, allocations: 41.64 kB / 427.2 MB, free: 8.504 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001194/0.299, allocations: 140.4 kB / 427.3 MB, free: 8.363 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.446e-05/0.299, allocations: 43.67 kB / 427.4 MB, free: 8.32 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.581e-05/0.2991, allocations: 57.7 kB / 427.4 MB, free: 8.258 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001756/0.2993, allocations: 334.8 kB / 427.7 MB, free: 7.922 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001567/0.2995, allocations: 64.33 kB / 427.8 MB, free: 7.859 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002125/0.2997, allocations: 132.5 kB / 427.9 MB, free: 7.699 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003703/0.3001, allocations: 212.6 kB / 428.1 MB, free: 7.461 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.3001, allocations: 3.938 kB / 428.1 MB, free: 7.457 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004636/0.3005, allocations: 253.2 kB / 428.4 MB, free: 7.203 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.82e-05/0.3005, allocations: 4 kB / 428.4 MB, free: 7.199 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.3006, allocations: 4 kB / 428.4 MB, free: 7.195 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.114e-05/0.3006, allocations: 7.984 kB / 428.4 MB, free: 7.188 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001782/0.3008, allocations: 39.92 kB / 428.4 MB, free: 7.148 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.161e-05/0.3008, allocations: 3.938 kB / 428.4 MB, free: 7.145 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001733/0.3009, allocations: 44.06 kB / 428.5 MB, free: 7.102 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.861e-05/0.301, allocations: 8 kB / 428.5 MB, free: 7.094 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.0001558/0.3011, allocations: 152.4 kB / 428.6 MB, free: 6.938 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.031e-05/0.3011, allocations: 15.91 kB / 428.7 MB, free: 6.922 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002722/0.3014, allocations: 135 kB / 428.8 MB, free: 6.781 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.427e-06/0.3014, allocations: 0 / 428.8 MB, free: 6.781 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.3014, allocations: 7.938 kB / 428.8 MB, free: 6.773 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.788e-06/0.3014, allocations: 3.938 kB / 428.8 MB, free: 6.77 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006671/0.3021, allocations: 482.3 kB / 429.3 MB, free: 6.242 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.067e-06/0.3021, allocations: 3.984 kB / 429.3 MB, free: 6.238 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001224/0.3022, allocations: 19.97 kB / 429.3 MB, free: 6.219 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.382e-06/0.3022, allocations: 7.938 kB / 429.3 MB, free: 6.211 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.469e-05/0.3022, allocations: 0 / 429.3 MB, free: 6.211 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.018e-06/0.3022, allocations: 3.938 kB / 429.3 MB, free: 6.207 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.616e-06/0.3023, allocations: 4 kB / 429.3 MB, free: 6.203 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004414/0.3027, allocations: 287.3 kB / 429.6 MB, free: 5.906 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.204e-05/0.3028, allocations: 96.89 kB / 429.7 MB, free: 5.793 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.023e-05/0.3028, allocations: 16.05 kB / 429.7 MB, free: 5.777 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00016/0.303, allocations: 11.98 kB / 429.7 MB, free: 5.766 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.786e-05/0.3031, allocations: 23.97 kB / 429.7 MB, free: 5.742 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.998e-05/0.3031, allocations: 8 kB / 429.7 MB, free: 5.734 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000136/0.3032, allocations: 148.8 kB / 429.9 MB, free: 5.59 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3032, allocations: 0 / 429.9 MB, free: 5.59 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003006/0.3035, allocations: 47.83 kB / 429.9 MB, free: 5.543 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.0001958/0.3037, allocations: 107.2 kB / 430 MB, free: 5.43 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000454/0.3042, allocations: 160.3 kB / 430.2 MB, free: 5.273 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.3042, allocations: 0 / 430.2 MB, free: 5.273 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001778/0.3043, allocations: 75.89 kB / 430.3 MB, free: 5.199 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003549/0.3047, allocations: 32.12 kB / 430.3 MB, free: 5.168 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007583/0.3055, allocations: 373.4 kB / 430.7 MB, free: 4.777 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004544/0.3059, allocations: 0.7319 MB / 431.4 MB, free: 4.02 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001005/0.306, allocations: 33.53 kB / 431.4 MB, free: 3.988 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.162e-05/0.3061, allocations: 23.42 kB / 431.5 MB, free: 3.965 MB / 334.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3061, allocations: 0 / 431.5 MB, free: 3.965 MB / 334.1 MB Notification: Performance of Templates: time 0.006147/0.3122, allocations: 2.153 MB / 433.6 MB, free: 1.828 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.5805809842422605]