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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001405/0.001405, allocations: 103.6 kB / 21.18 MB, free: 332 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001663/0.001663, allocations: 209.4 kB / 24.47 MB, free: 3.547 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.612/1.612, allocations: 207.7 MB / 235.3 MB, free: 9.805 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002316/0.002316, allocations: 54.75 kB / 347.7 MB, free: 9.488 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2722/0.2746, allocations: 49.16 MB / 396.8 MB, free: 9.379 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.00264/0.2772, allocations: 1.786 MB / 398.6 MB, free: 8.16 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009914/0.2782, allocations: 0.6314 MB / 399.3 MB, free: 7.734 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.931e-05/0.2783, allocations: 7.562 kB / 399.3 MB, free: 7.73 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001341/0.2784, allocations: 31.77 kB / 399.3 MB, free: 7.707 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001326/0.2786, allocations: 34.78 kB / 399.3 MB, free: 7.68 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003174/0.2789, allocations: 85.08 kB / 399.4 MB, free: 7.637 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002138/0.2791, allocations: 171.5 kB / 399.6 MB, free: 7.559 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001685/0.2793, allocations: 59.56 kB / 399.6 MB, free: 7.527 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001133/0.2794, allocations: 73.55 kB / 399.7 MB, free: 7.492 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001493/0.2795, allocations: 83.19 kB / 399.8 MB, free: 7.453 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.518e-05/0.2796, allocations: 14.72 kB / 399.8 MB, free: 7.453 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.155e-05/0.2796, allocations: 23.03 kB / 399.8 MB, free: 7.449 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.286e-05/0.2797, allocations: 43.66 kB / 399.9 MB, free: 7.426 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.106e-05/0.2798, allocations: 72.19 kB / 399.9 MB, free: 7.379 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002595/0.28, allocations: 199.7 kB / 400.1 MB, free: 7.297 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.28, allocations: 0 / 400.1 MB, free: 7.297 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.28, allocations: 0 / 400.1 MB, free: 7.297 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.532e-06/0.28, allocations: 5.094 kB / 400.1 MB, free: 7.293 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.0008094/0.2809, allocations: 443.5 kB / 400.6 MB, free: 6.938 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.448e-05/0.2809, allocations: 12.42 kB / 400.6 MB, free: 6.934 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.378e-05/0.2809, allocations: 23.98 kB / 400.6 MB, free: 6.922 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002455/0.2812, allocations: 187.2 kB / 400.8 MB, free: 6.754 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.208e-05/0.2812, allocations: 19.83 kB / 400.8 MB, free: 6.742 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.891e-05/0.2812, allocations: 23.39 kB / 400.8 MB, free: 6.73 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003656/0.2816, allocations: 207 kB / 401 MB, free: 6.621 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.188e-05/0.2816, allocations: 0 / 401 MB, free: 6.621 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.891e-05/0.2816, allocations: 6.109 kB / 401 MB, free: 6.617 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.238e-05/0.2817, allocations: 11.97 kB / 401.1 MB, free: 6.613 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003174/0.282, allocations: 145 kB / 401.2 MB, free: 6.57 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008547/0.2828, allocations: 0.6802 MB / 401.9 MB, free: 6.023 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005753/0.2834, allocations: 180.6 kB / 402 MB, free: 5.965 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000133/0.2835, allocations: 64.44 kB / 402.1 MB, free: 5.938 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.255e-05/0.2836, allocations: 3.234 kB / 402.1 MB, free: 5.938 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000237/0.2838, allocations: 151.8 kB / 402.3 MB, free: 5.844 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.312e-06/0.2838, allocations: 0 / 402.3 MB, free: 5.844 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005115/0.2843, allocations: 242.6 kB / 402.5 MB, free: 5.754 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.44e-05/0.2844, allocations: 84.64 kB / 402.6 MB, free: 5.656 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001525/0.2845, allocations: 217 kB / 402.8 MB, free: 5.508 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.723e-05/0.2845, allocations: 32.84 kB / 402.8 MB, free: 5.473 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.916e-05/0.2846, allocations: 137.2 kB / 403 MB, free: 5.352 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.034e-05/0.2846, allocations: 38.95 kB / 403 MB, free: 5.32 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.75e-05/0.2847, allocations: 60.73 kB / 403.1 MB, free: 5.285 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.544e-05/0.2848, allocations: 338 kB / 403.4 MB, free: 4.957 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001561/0.2849, allocations: 66.33 kB / 403.5 MB, free: 4.941 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001595/0.2851, allocations: 135.8 kB / 403.6 MB, free: 4.84 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003026/0.2854, allocations: 216.9 kB / 403.8 MB, free: 4.699 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.2854, allocations: 0 / 403.8 MB, free: 4.699 MB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004039/0.2858, allocations: 245.9 kB / 404 MB, free: 4.598 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.451e-05/0.2858, allocations: 5.656 kB / 404 MB, free: 4.598 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.2858, allocations: 2.125 kB / 404 MB, free: 4.598 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.702e-05/0.2858, allocations: 8.781 kB / 404.1 MB, free: 4.594 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001617/0.286, allocations: 41.94 kB / 404.1 MB, free: 4.586 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.644e-06/0.286, allocations: 2.844 kB / 404.1 MB, free: 4.586 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001634/0.2862, allocations: 35.12 kB / 404.1 MB, free: 4.57 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.588e-05/0.2862, allocations: 13.06 kB / 404.1 MB, free: 4.566 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.0001061/0.2863, allocations: 155.2 kB / 404.3 MB, free: 4.422 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.741e-05/0.2863, allocations: 16.8 kB / 404.3 MB, free: 4.414 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002328/0.2865, allocations: 134.2 kB / 404.4 MB, free: 4.336 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.417e-06/0.2865, allocations: 3.094 kB / 404.4 MB, free: 4.336 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.2865, allocations: 0.75 kB / 404.4 MB, free: 4.336 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.708e-06/0.2865, allocations: 2.047 kB / 404.4 MB, free: 4.336 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004932/0.287, allocations: 401.5 kB / 404.8 MB, free: 4.043 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.287, allocations: 4 kB / 404.8 MB, free: 4.039 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001181/0.2872, allocations: 21.81 kB / 404.9 MB, free: 4.035 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.776e-06/0.2872, allocations: 2.281 kB / 404.9 MB, free: 4.035 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.558e-05/0.2872, allocations: 6.203 kB / 404.9 MB, free: 4.031 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.775e-06/0.2872, allocations: 1.609 kB / 404.9 MB, free: 4.031 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.2872, allocations: 1.344 kB / 404.9 MB, free: 4.031 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003539/0.2875, allocations: 290.4 kB / 405.2 MB, free: 3.84 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.459e-05/0.2876, allocations: 18.19 kB / 405.2 MB, free: 3.828 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.981e-05/0.2876, allocations: 5.984 kB / 405.2 MB, free: 3.824 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001652/0.2878, allocations: 19.56 kB / 405.2 MB, free: 3.82 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.399e-05/0.2878, allocations: 27.83 kB / 405.2 MB, free: 3.809 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.826e-05/0.2878, allocations: 10.98 kB / 405.2 MB, free: 3.805 MB / 318.1 MB Notification: Performance of sorting global known variables: time 9.216e-05/0.2879, allocations: 141 kB / 405.4 MB, free: 3.711 MB / 318.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2879, allocations: 0 / 405.4 MB, free: 3.711 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002946/0.2882, allocations: 40.3 kB / 405.4 MB, free: 3.703 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.000104/0.2883, allocations: 106.4 kB / 405.5 MB, free: 3.609 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003593/0.2887, allocations: 163 kB / 405.7 MB, free: 3.566 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.2887, allocations: 0 / 405.7 MB, free: 3.566 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001659/0.2889, allocations: 78.56 kB / 405.8 MB, free: 3.543 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003235/0.2892, allocations: 33.83 kB / 405.8 MB, free: 3.527 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005715/0.2898, allocations: 379.8 kB / 406.2 MB, free: 3.277 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001119/0.2899, allocations: 120.3 kB / 406.3 MB, free: 3.203 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001004/0.29, allocations: 33.94 kB / 406.3 MB, free: 3.199 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.756e-05/0.29, allocations: 20.64 kB / 406.3 MB, free: 3.191 MB / 318.1 MB Notification: Performance of SimCode: time 3.5e-07/0.29, allocations: 0 / 406.3 MB, free: 3.191 MB / 318.1 MB Notification: Performance of Templates: time 0.005451/0.2955, allocations: 2.269 MB / 408.6 MB, free: 2.621 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.773288791999221]