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.001069/0.001069, allocations: 75.75 kB / 21.97 MB, free: 2.602 MB / 18.57 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.001062/0.001062, allocations: 167.3 kB / 25.33 MB, free: 9.211 MB / 18.57 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.064/1.064, allocations: 158.6 MB / 187.2 MB, free: 2.91 MB / 170.7 MB " [Timeout remaining time 179] 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: Performance of FrontEnd - loaded program: time 1.553e-06/1.553e-06, allocations: 0 / 251 MB, free: 7.531 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.344e-05/2.499e-05, allocations: 2.312 kB / 251 MB, free: 7.527 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003357/0.003382, allocations: 1.853 MB / 252.9 MB, free: 5.656 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001424/0.004806, allocations: 0.6553 MB / 253.5 MB, free: 4.992 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001369/0.004943, allocations: 7.938 kB / 253.5 MB, free: 4.984 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001642/0.005107, allocations: 35.59 kB / 253.6 MB, free: 4.949 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001493/0.005256, allocations: 31.73 kB / 253.6 MB, free: 4.918 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003717/0.005628, allocations: 87.7 kB / 253.7 MB, free: 4.832 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002437/0.005872, allocations: 175.4 kB / 253.9 MB, free: 4.66 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001741/0.006046, allocations: 62.92 kB / 253.9 MB, free: 4.598 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001853/0.006231, allocations: 95.78 kB / 254 MB, free: 4.504 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001733/0.006404, allocations: 67.78 kB / 254.1 MB, free: 4.438 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.973e-05/0.006444, allocations: 12 kB / 254.1 MB, free: 4.426 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.942e-05/0.006533, allocations: 31.92 kB / 254.1 MB, free: 4.395 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 7.005e-05/0.006603, allocations: 39.83 kB / 254.2 MB, free: 4.355 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 8.107e-05/0.006685, allocations: 55.83 kB / 254.2 MB, free: 4.301 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003044/0.006989, allocations: 163.2 kB / 254.4 MB, free: 4.141 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.006993, allocations: 4 kB / 254.4 MB, free: 4.137 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.006994, allocations: 0 / 254.4 MB, free: 4.137 MB / 234.7 MB Notification: Performance of Transformations before backend: time 6.412e-06/0.007001, allocations: 4 kB / 254.4 MB, free: 4.133 MB / 234.7 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.0007995/0.0078, allocations: 0.5192 MB / 254.9 MB, free: 3.578 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.295e-05/0.007843, allocations: 11.98 kB / 254.9 MB, free: 3.566 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.631e-05/0.00793, allocations: 40.78 kB / 255 MB, free: 3.527 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002696/0.008199, allocations: 184.2 kB / 255.1 MB, free: 3.32 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.226e-05/0.008232, allocations: 16.38 kB / 255.2 MB, free: 3.305 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.117e-05/0.008263, allocations: 16.31 kB / 255.2 MB, free: 3.289 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00037/0.008633, allocations: 193.9 kB / 255.4 MB, free: 3.074 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.61e-05/0.008649, allocations: 4.125 kB / 255.4 MB, free: 3.07 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.184e-05/0.008671, allocations: 8.375 kB / 255.4 MB, free: 3.062 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.945e-05/0.0087, allocations: 11.92 kB / 255.4 MB, free: 3.051 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001963/0.008896, allocations: 67.89 kB / 255.4 MB, free: 2.984 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001132/0.01003, allocations: 0.8474 MB / 256.3 MB, free: 2.086 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004378/0.01047, allocations: 131.1 kB / 256.4 MB, free: 1.945 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.685e-05/0.01054, allocations: 31.67 kB / 256.5 MB, free: 1.91 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.046e-05/0.01058, allocations: 8 kB / 256.5 MB, free: 1.902 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002056/0.01079, allocations: 127.9 kB / 256.6 MB, free: 1.754 MB / 234.7 MB Notification: Performance of pre-optimization done (n=15): time 1.823e-06/0.01079, allocations: 0 / 256.6 MB, free: 1.754 MB / 234.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003936/0.01118, allocations: 157.5 kB / 256.7 MB, free: 1.594 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.944e-05/0.01124, allocations: 89.09 kB / 256.8 MB, free: 1.488 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002145/0.01146, allocations: 258.7 kB / 257.1 MB, free: 1.219 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 2.507e-05/0.01148, allocations: 37.7 kB / 257.1 MB, free: 1.176 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001108/0.01159, allocations: 191 kB / 257.3 MB, free: 0.9844 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.303e-05/0.01164, allocations: 39.73 kB / 257.3 MB, free: 0.9453 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001/0.01174, allocations: 67.31 kB / 257.4 MB, free: 0.8711 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001608/0.0119, allocations: 0.5001 MB / 257.9 MB, free: 368 kB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.717e-05/0.01199, allocations: 31.92 kB / 257.9 MB, free: 336 kB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001412/0.01213, allocations: 132.8 kB / 258.1 MB, free: 160 kB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002208/0.01235, allocations: 168.7 kB / 258.2 MB, free: 15.95 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/0.01235, allocations: 3.938 kB / 258.2 MB, free: 15.95 MB / 250.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000326/0.01268, allocations: 193.2 kB / 258.4 MB, free: 15.75 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.793e-05/0.0127, allocations: 8.25 kB / 258.4 MB, free: 15.74 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.062e-06/0.0127, allocations: 4 kB / 258.4 MB, free: 15.74 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.049e-05/0.01272, allocations: 4 kB / 258.4 MB, free: 15.73 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001686/0.01289, allocations: 39.92 kB / 258.5 MB, free: 15.7 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.125e-06/0.0129, allocations: 0 / 258.5 MB, free: 15.7 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001175/0.01302, allocations: 31.83 kB / 258.5 MB, free: 15.66 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.732e-05/0.01303, allocations: 8 kB / 258.5 MB, free: 15.66 MB / 250.7 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.0001484/0.01318, allocations: 186.4 kB / 258.7 MB, free: 15.46 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.99e-05/0.01322, allocations: 19.91 kB / 258.7 MB, free: 15.44 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002224/0.01344, allocations: 115.4 kB / 258.8 MB, free: 15.32 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.45e-06/0.01345, allocations: 4 kB / 258.8 MB, free: 15.32 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-06/0.01345, allocations: 0 / 258.8 MB, free: 15.32 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.584e-06/0.01346, allocations: 7.969 kB / 258.8 MB, free: 15.31 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005018/0.01396, allocations: 441.1 kB / 259.3 MB, free: 14.84 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.554e-06/0.01397, allocations: 320 / 259.3 MB, free: 14.84 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.79e-05/0.01405, allocations: 12 kB / 259.3 MB, free: 14.82 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.081e-06/0.01406, allocations: 7.984 kB / 259.3 MB, free: 14.82 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.639e-05/0.01408, allocations: 7.938 kB / 259.3 MB, free: 14.81 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.851e-06/0.01408, allocations: 0 / 259.3 MB, free: 14.81 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.01408, allocations: 11.94 kB / 259.3 MB, free: 14.8 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002355/0.01432, allocations: 283.4 kB / 259.6 MB, free: 14.5 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.985e-05/0.01434, allocations: 23.83 kB / 259.6 MB, free: 14.47 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.051e-05/0.01436, allocations: 4 kB / 259.6 MB, free: 14.47 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.652e-05/0.01445, allocations: 11.98 kB / 259.6 MB, free: 14.46 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.352e-05/0.01451, allocations: 19.97 kB / 259.7 MB, free: 14.44 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.359e-05/0.01452, allocations: 8 kB / 259.7 MB, free: 14.43 MB / 250.7 MB Notification: Performance of sorting global known variables: time 7.621e-05/0.0146, allocations: 172.1 kB / 259.8 MB, free: 14.26 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.0146, allocations: 0 / 259.8 MB, free: 14.26 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001937/0.01479, allocations: 43.89 kB / 259.9 MB, free: 14.22 MB / 250.7 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.0001273/0.01492, allocations: 115.1 kB / 260 MB, free: 14.09 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001944/0.01512, allocations: 111.5 kB / 260.1 MB, free: 13.98 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.01512, allocations: 0 / 260.1 MB, free: 13.98 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 7.636e-05/0.01519, allocations: 51.61 kB / 260.1 MB, free: 13.93 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002295/0.01542, allocations: 32.33 kB / 260.2 MB, free: 13.89 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006254/0.01605, allocations: 353.4 kB / 260.5 MB, free: 13.52 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.75e-05/0.0161, allocations: 76.28 kB / 260.6 MB, free: 13.43 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 5.727e-05/0.01615, allocations: 29.45 kB / 260.6 MB, free: 13.4 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.074e-05/0.0162, allocations: 24.5 kB / 260.6 MB, free: 13.38 MB / 250.7 MB Notification: Performance of SimCode: time 8.21e-07/0.0162, allocations: 0 / 260.6 MB, free: 13.38 MB / 250.7 MB Notification: Performance of Templates: time 0.003834/0.02004, allocations: 2.183 MB / 262.8 MB, free: 11.22 MB / 250.7 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=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0266856607049704]