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.001338/0.001338, allocations: 112.2 kB / 21.94 MB, free: 12 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.002259/0.002259, allocations: 200.8 kB / 25.23 MB, free: 3.539 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.566/1.566, allocations: 207.6 MB / 236 MB, free: 9.969 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.002611/0.002611, allocations: 58.95 kB / 348.4 MB, free: 9.535 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4969/0.4995, allocations: 49.16 MB / 397.6 MB, free: 9.496 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.006048/0.5056, allocations: 1.831 MB / 399.4 MB, free: 8.227 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002012/0.5076, allocations: 0.6784 MB / 400.1 MB, free: 7.754 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002719/0.5078, allocations: 6.438 kB / 400.1 MB, free: 7.75 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002188/0.5081, allocations: 30.22 kB / 400.1 MB, free: 7.727 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002734/0.5083, allocations: 32.06 kB / 400.2 MB, free: 7.703 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00057/0.5089, allocations: 89.98 kB / 400.3 MB, free: 7.652 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005696/0.5095, allocations: 176.5 kB / 400.4 MB, free: 7.57 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003094/0.5098, allocations: 55.7 kB / 400.5 MB, free: 7.539 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002703/0.5101, allocations: 74.12 kB / 400.6 MB, free: 7.504 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000315/0.5104, allocations: 90.33 kB / 400.6 MB, free: 7.457 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.714e-05/0.5104, allocations: 14.72 kB / 400.7 MB, free: 7.457 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001301/0.5106, allocations: 23.83 kB / 400.7 MB, free: 7.453 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000113/0.5107, allocations: 42.58 kB / 400.7 MB, free: 7.43 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001584/0.5108, allocations: 89.78 kB / 400.8 MB, free: 7.367 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005479/0.5114, allocations: 207.6 kB / 401 MB, free: 7.277 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.065e-06/0.5114, allocations: 1.188 kB / 401 MB, free: 7.277 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.046e-06/0.5114, allocations: 0 / 401 MB, free: 7.277 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.436e-05/0.5114, allocations: 0 / 401 MB, free: 7.277 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.001626/0.513, allocations: 438.9 kB / 401.4 MB, free: 6.926 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.954e-05/0.5131, allocations: 13.7 kB / 401.5 MB, free: 6.922 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001188/0.5132, allocations: 24.66 kB / 401.5 MB, free: 6.91 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004828/0.5137, allocations: 186.7 kB / 401.7 MB, free: 6.742 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.717e-05/0.5137, allocations: 12.53 kB / 401.7 MB, free: 6.738 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.05e-05/0.5138, allocations: 14.66 kB / 401.7 MB, free: 6.734 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007038/0.5145, allocations: 217.1 kB / 401.9 MB, free: 6.613 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.208e-05/0.5145, allocations: 8 kB / 401.9 MB, free: 6.605 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.67e-05/0.5146, allocations: 7.125 kB / 401.9 MB, free: 6.602 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.667e-05/0.5146, allocations: 10.52 kB / 401.9 MB, free: 6.598 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006115/0.5152, allocations: 138.1 kB / 402.1 MB, free: 6.562 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001734/0.5169, allocations: 0.7501 MB / 402.8 MB, free: 5.965 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001069/0.518, allocations: 185 kB / 403 MB, free: 5.902 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002745/0.5183, allocations: 64.5 kB / 403.1 MB, free: 5.875 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.886e-05/0.5183, allocations: 3.531 kB / 403.1 MB, free: 5.875 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004357/0.5188, allocations: 150.5 kB / 403.2 MB, free: 5.781 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 2.715e-06/0.5188, allocations: 4 kB / 403.2 MB, free: 5.777 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.001103/0.5199, allocations: 241.4 kB / 403.4 MB, free: 5.688 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.041e-05/0.5199, allocations: 84.56 kB / 403.5 MB, free: 5.594 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003535/0.5203, allocations: 222.8 kB / 403.7 MB, free: 5.441 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.222e-05/0.5203, allocations: 32.27 kB / 403.8 MB, free: 5.406 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001387/0.5205, allocations: 136 kB / 403.9 MB, free: 5.285 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.391e-05/0.5205, allocations: 35.98 kB / 403.9 MB, free: 5.258 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001482/0.5207, allocations: 62.55 kB / 404 MB, free: 5.219 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.844e-05/0.5208, allocations: 334 kB / 404.3 MB, free: 4.895 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002887/0.5211, allocations: 66.55 kB / 404.4 MB, free: 4.879 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003371/0.5214, allocations: 141.4 kB / 404.5 MB, free: 4.77 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006083/0.522, allocations: 212.9 kB / 404.7 MB, free: 4.633 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.32e-06/0.522, allocations: 0 / 404.7 MB, free: 4.633 MB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0008363/0.5228, allocations: 250.7 kB / 405 MB, free: 4.527 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.281e-05/0.5229, allocations: 9.781 kB / 405 MB, free: 4.523 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.027e-05/0.5229, allocations: 2.156 kB / 405 MB, free: 4.523 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.721e-05/0.5229, allocations: 3.531 kB / 405 MB, free: 4.523 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000297/0.5232, allocations: 35.88 kB / 405 MB, free: 4.52 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.789e-05/0.5232, allocations: 8.281 kB / 405 MB, free: 4.516 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003183/0.5235, allocations: 34.7 kB / 405.1 MB, free: 4.5 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.478e-05/0.5236, allocations: 12.91 kB / 405.1 MB, free: 4.496 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.0001999/0.5238, allocations: 159.6 kB / 405.3 MB, free: 4.348 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.379e-05/0.5238, allocations: 16.53 kB / 405.3 MB, free: 4.34 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003983/0.5242, allocations: 127.3 kB / 405.4 MB, free: 4.27 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.895e-06/0.5242, allocations: 6.562 kB / 405.4 MB, free: 4.266 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.386e-06/0.5242, allocations: 4 kB / 405.4 MB, free: 4.262 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.685e-06/0.5242, allocations: 1.75 kB / 405.4 MB, free: 4.262 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001042/0.5253, allocations: 454.6 kB / 405.8 MB, free: 3.926 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.5253, allocations: 5.312 kB / 405.9 MB, free: 3.922 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002032/0.5255, allocations: 17.73 kB / 405.9 MB, free: 3.922 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.064e-06/0.5255, allocations: 1.219 kB / 405.9 MB, free: 3.922 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.773e-05/0.5255, allocations: 6.516 kB / 405.9 MB, free: 3.918 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.434e-06/0.5255, allocations: 6.547 kB / 405.9 MB, free: 3.914 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/0.5255, allocations: 0 / 405.9 MB, free: 3.914 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000723/0.5263, allocations: 290.9 kB / 406.2 MB, free: 3.723 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.088e-05/0.5263, allocations: 17.38 kB / 406.2 MB, free: 3.711 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.431e-05/0.5264, allocations: 3.031 kB / 406.2 MB, free: 3.711 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003124/0.5267, allocations: 22.89 kB / 406.2 MB, free: 3.703 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001548/0.5268, allocations: 20.17 kB / 406.2 MB, free: 3.699 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.899e-05/0.5269, allocations: 6.109 kB / 406.2 MB, free: 3.699 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002401/0.5271, allocations: 146.6 kB / 406.4 MB, free: 3.605 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.5271, allocations: 0 / 406.4 MB, free: 3.605 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006362/0.5278, allocations: 43.38 kB / 406.4 MB, free: 3.594 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.0002189/0.528, allocations: 110.8 kB / 406.5 MB, free: 3.496 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0007656/0.5287, allocations: 162.1 kB / 406.7 MB, free: 3.453 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 8.496e-06/0.5287, allocations: 10.08 kB / 406.7 MB, free: 3.445 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003587/0.5291, allocations: 73.66 kB / 406.8 MB, free: 3.426 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006314/0.5297, allocations: 28.34 kB / 406.8 MB, free: 3.414 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001223/0.531, allocations: 401 kB / 407.2 MB, free: 3.141 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002796/0.5312, allocations: 0.734 MB / 407.9 MB, free: 2.441 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000106/0.5313, allocations: 20.27 kB / 407.9 MB, free: 2.434 MB / 318.1 MB Notification: Performance of SimCode: time 4.91e-07/0.5313, allocations: 1.656 kB / 407.9 MB, free: 2.434 MB / 318.1 MB Notification: Performance of Templates: time 0.009724/0.5411, allocations: 2.451 MB / 410.4 MB, free: 1.77 MB / 318.1 MB " [Timeout remaining time 659] 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","/var/lib/jenkins1/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: 8.011677431175485]