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.002621/0.002621, allocations: 99.53 kB / 21.73 MB, free: 2.691 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.002474/0.002474, allocations: 172.2 kB / 25.03 MB, free: 8.418 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.331/1.331, allocations: 158.6 MB / 186.9 MB, free: 2.883 MB / 170.7 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: Performance of FrontEnd - loaded program: time 1.734e-06/1.734e-06, allocations: 0 / 250.4 MB, free: 3.949 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.652e-05/3.825e-05, allocations: 10.25 kB / 250.4 MB, free: 3.938 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003407/0.003446, allocations: 1.809 MB / 252.2 MB, free: 2.109 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001376/0.004822, allocations: 0.6553 MB / 252.8 MB, free: 1.445 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.764e-05/0.004919, allocations: 3.938 kB / 252.8 MB, free: 1.441 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001588/0.005078, allocations: 35.59 kB / 252.9 MB, free: 1.406 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001602/0.005238, allocations: 35.66 kB / 252.9 MB, free: 1.371 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005611/0.005799, allocations: 83.72 kB / 253 MB, free: 1.289 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002671/0.006067, allocations: 183.4 kB / 253.2 MB, free: 1.109 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001777/0.006244, allocations: 46.98 kB / 253.2 MB, free: 1.062 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000186/0.00643, allocations: 99.72 kB / 253.3 MB, free: 0.9648 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001619/0.006592, allocations: 71.78 kB / 253.4 MB, free: 0.8945 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.426e-05/0.006636, allocations: 16 kB / 253.4 MB, free: 0.8789 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.913e-05/0.006716, allocations: 20 kB / 253.4 MB, free: 0.8594 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 8.802e-05/0.006804, allocations: 55.8 kB / 253.5 MB, free: 0.8047 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 8.037e-05/0.006884, allocations: 43.86 kB / 253.5 MB, free: 0.7617 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003618/0.007246, allocations: 215.1 kB / 253.7 MB, free: 0.5508 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.359e-06/0.00725, allocations: 0 / 253.7 MB, free: 0.5508 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.223e-06/0.007251, allocations: 0 / 253.7 MB, free: 0.5508 MB / 234.7 MB Notification: Performance of Transformations before backend: time 6.442e-06/0.007258, allocations: 4 kB / 253.7 MB, free: 0.5469 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.001011/0.008268, allocations: 0.5328 MB / 254.3 MB, free: 15.98 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.88e-05/0.008307, allocations: 11.98 kB / 254.3 MB, free: 15.96 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001046/0.008412, allocations: 36.8 kB / 254.3 MB, free: 15.93 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003192/0.008731, allocations: 184.1 kB / 254.5 MB, free: 15.72 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.961e-05/0.008761, allocations: 16.38 kB / 254.5 MB, free: 15.71 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.963e-05/0.00879, allocations: 16.38 kB / 254.5 MB, free: 15.69 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004166/0.009207, allocations: 197.2 kB / 254.7 MB, free: 15.48 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.38e-05/0.009221, allocations: 4.125 kB / 254.7 MB, free: 15.47 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.13e-05/0.009242, allocations: 10 kB / 254.7 MB, free: 15.46 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.566e-05/0.009268, allocations: 12 kB / 254.7 MB, free: 15.45 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002972/0.009565, allocations: 107.7 kB / 254.8 MB, free: 15.35 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001266/0.01083, allocations: 0.8788 MB / 255.7 MB, free: 14.42 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005267/0.01136, allocations: 143.2 kB / 255.9 MB, free: 14.27 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000124/0.01148, allocations: 43.67 kB / 255.9 MB, free: 14.22 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.54e-05/0.01153, allocations: 8 kB / 255.9 MB, free: 14.21 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002944/0.01182, allocations: 152.2 kB / 256.1 MB, free: 14.04 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 1.142e-06/0.01182, allocations: 0 / 256.1 MB, free: 14.04 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005918/0.01241, allocations: 197.4 kB / 256.2 MB, free: 13.84 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.537e-05/0.01249, allocations: 81.11 kB / 256.3 MB, free: 13.74 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000305/0.01279, allocations: 298.7 kB / 256.6 MB, free: 13.43 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.142e-05/0.01283, allocations: 29.7 kB / 256.6 MB, free: 13.4 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000172/0.013, allocations: 199 kB / 256.8 MB, free: 13.2 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.861e-05/0.01305, allocations: 43.73 kB / 256.9 MB, free: 13.16 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001261/0.01317, allocations: 75.34 kB / 257 MB, free: 13.07 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0003268/0.0135, allocations: 0.504 MB / 257.5 MB, free: 12.56 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000146/0.01365, allocations: 51.91 kB / 257.5 MB, free: 12.51 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002428/0.01389, allocations: 152.8 kB / 257.7 MB, free: 12.32 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003469/0.01424, allocations: 196.7 kB / 257.9 MB, free: 12.08 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.01424, allocations: 4 kB / 257.9 MB, free: 12.08 MB / 250.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004388/0.01468, allocations: 217.2 kB / 258.1 MB, free: 11.86 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.882e-05/0.0147, allocations: 8.234 kB / 258.1 MB, free: 11.85 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.51e-06/0.0147, allocations: 8 kB / 258.1 MB, free: 11.84 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.279e-05/0.01472, allocations: 7.938 kB / 258.1 MB, free: 11.84 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001915/0.01492, allocations: 39.92 kB / 258.1 MB, free: 11.8 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.917e-06/0.01492, allocations: 4 kB / 258.1 MB, free: 11.79 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001952/0.01512, allocations: 27.88 kB / 258.2 MB, free: 11.77 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.029e-05/0.01514, allocations: 8 kB / 258.2 MB, free: 11.76 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.0001929/0.01533, allocations: 186.5 kB / 258.4 MB, free: 11.56 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.607e-05/0.01538, allocations: 23.91 kB / 258.4 MB, free: 11.54 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000274/0.01565, allocations: 127.4 kB / 258.5 MB, free: 11.41 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.44e-06/0.01566, allocations: 3.938 kB / 258.5 MB, free: 11.4 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.01566, allocations: 4 kB / 258.5 MB, free: 11.4 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/0.01567, allocations: 0 / 258.5 MB, free: 11.4 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006923/0.01636, allocations: 457.5 kB / 259 MB, free: 10.91 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.01636, allocations: 0 / 259 MB, free: 10.91 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001096/0.01647, allocations: 19.98 kB / 259 MB, free: 10.89 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.681e-06/0.01648, allocations: 3.938 kB / 259 MB, free: 10.89 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.684e-05/0.0165, allocations: 11.98 kB / 259 MB, free: 10.88 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.368e-06/0.01651, allocations: 3.938 kB / 259 MB, free: 10.87 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.01651, allocations: 4 kB / 259 MB, free: 10.87 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004768/0.01699, allocations: 321.4 kB / 259.3 MB, free: 10.53 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.336e-05/0.01702, allocations: 19.8 kB / 259.3 MB, free: 10.51 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.789e-05/0.01706, allocations: 7.938 kB / 259.3 MB, free: 10.5 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001353/0.01719, allocations: 11.98 kB / 259.4 MB, free: 10.49 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.999e-05/0.01728, allocations: 27.95 kB / 259.4 MB, free: 10.46 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.278e-05/0.0173, allocations: 4 kB / 259.4 MB, free: 10.46 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001708/0.01748, allocations: 184.1 kB / 259.6 MB, free: 10.28 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01748, allocations: 0 / 259.6 MB, free: 10.28 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003058/0.01778, allocations: 39.95 kB / 259.6 MB, free: 10.24 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.000185/0.01797, allocations: 115.1 kB / 259.7 MB, free: 10.12 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.000398/0.01836, allocations: 151.5 kB / 259.9 MB, free: 9.965 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.01837, allocations: 0 / 259.9 MB, free: 9.965 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004301/0.0188, allocations: 71.59 kB / 259.9 MB, free: 9.891 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003595/0.01916, allocations: 32.75 kB / 260 MB, free: 9.859 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000794/0.01995, allocations: 361.6 kB / 260.3 MB, free: 9.477 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001421/0.02009, allocations: 124.8 kB / 260.4 MB, free: 9.336 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0001014/0.02019, allocations: 33.45 kB / 260.5 MB, free: 9.305 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.081e-05/0.02026, allocations: 20.5 kB / 260.5 MB, free: 9.285 MB / 250.7 MB Notification: Performance of SimCode: time 5.31e-07/0.02026, allocations: 0 / 260.5 MB, free: 9.285 MB / 250.7 MB Notification: Performance of Templates: time 0.006427/0.02669, allocations: 2.159 MB / 262.7 MB, free: 7.148 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","/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.395701352041215]