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.002293/0.002293, allocations: 96.3 kB / 21.73 MB, free: 2.703 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.002572/0.002572, allocations: 166.5 kB / 25.02 MB, free: 8.945 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.534/1.534, allocations: 158.6 MB / 186.8 MB, free: 2.926 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 2.124e-06/2.124e-06, allocations: 0 / 250.3 MB, free: 7.859 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.974e-05/4.187e-05, allocations: 9.406 kB / 250.3 MB, free: 7.852 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.00394/0.003982, allocations: 1.791 MB / 252.1 MB, free: 6.043 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001466/0.005448, allocations: 0.6358 MB / 252.8 MB, free: 5.398 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001365/0.005584, allocations: 7.938 kB / 252.8 MB, free: 5.391 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001639/0.005748, allocations: 35.59 kB / 252.8 MB, free: 5.355 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001595/0.005907, allocations: 31.67 kB / 252.8 MB, free: 5.324 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003915/0.006299, allocations: 87.7 kB / 252.9 MB, free: 5.238 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006097/0.006909, allocations: 179.3 kB / 253.1 MB, free: 5.062 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002049/0.007113, allocations: 54.98 kB / 253.2 MB, free: 5.008 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000224/0.007337, allocations: 103.8 kB / 253.3 MB, free: 4.906 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001758/0.007513, allocations: 67.78 kB / 253.3 MB, free: 4.84 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.864e-05/0.007552, allocations: 12 kB / 253.3 MB, free: 4.828 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.517e-05/0.007637, allocations: 23.98 kB / 253.4 MB, free: 4.805 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 9.943e-05/0.007736, allocations: 47.83 kB / 253.4 MB, free: 4.758 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 9.671e-05/0.007833, allocations: 51.83 kB / 253.5 MB, free: 4.707 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003676/0.008201, allocations: 215.1 kB / 253.7 MB, free: 4.496 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.008205, allocations: 0 / 253.7 MB, free: 4.496 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.008206, allocations: 0 / 253.7 MB, free: 4.496 MB / 234.7 MB Notification: Performance of Transformations before backend: time 6.753e-06/0.008212, allocations: 0 / 253.7 MB, free: 4.496 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.001105/0.009318, allocations: 441.3 kB / 254.1 MB, free: 4.035 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.494e-05/0.009363, allocations: 15.98 kB / 254.1 MB, free: 4.02 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001208/0.009483, allocations: 32.8 kB / 254.1 MB, free: 3.988 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000351/0.009834, allocations: 189.3 kB / 254.3 MB, free: 3.777 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.023e-05/0.009865, allocations: 12.38 kB / 254.3 MB, free: 3.766 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.336e-05/0.009898, allocations: 12.38 kB / 254.4 MB, free: 3.754 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004819/0.01038, allocations: 213.6 kB / 254.6 MB, free: 3.527 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.417e-05/0.01039, allocations: 4.125 kB / 254.6 MB, free: 3.523 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.683e-05/0.01042, allocations: 12.36 kB / 254.6 MB, free: 3.512 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.178e-05/0.01045, allocations: 11.94 kB / 254.6 MB, free: 3.5 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004103/0.01086, allocations: 143.7 kB / 254.7 MB, free: 3.359 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001342/0.01221, allocations: 0.684 MB / 255.4 MB, free: 2.633 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007625/0.01297, allocations: 182.6 kB / 255.6 MB, free: 2.445 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001739/0.01314, allocations: 60.83 kB / 255.7 MB, free: 2.383 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.997e-05/0.01318, allocations: 0 / 255.7 MB, free: 2.383 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003284/0.01351, allocations: 148.9 kB / 255.8 MB, free: 2.219 MB / 234.7 MB Notification: Performance of pre-optimization done (n=15): time 1.874e-06/0.01351, allocations: 4 kB / 255.8 MB, free: 2.215 MB / 234.7 MB Notification: Performance of matching and sorting (n=15): time 0.0007585/0.01427, allocations: 253.4 kB / 256.1 MB, free: 1.961 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.845e-05/0.01435, allocations: 81.11 kB / 256.1 MB, free: 1.863 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002784/0.01463, allocations: 211.8 kB / 256.3 MB, free: 1.648 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 3.321e-05/0.01466, allocations: 29.7 kB / 256.4 MB, free: 1.613 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001412/0.0148, allocations: 148.3 kB / 256.5 MB, free: 1.465 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.824e-05/0.01485, allocations: 31.73 kB / 256.5 MB, free: 1.434 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001172/0.01497, allocations: 61.66 kB / 256.6 MB, free: 1.367 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0002011/0.01517, allocations: 330.8 kB / 256.9 MB, free: 1.035 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002207/0.01539, allocations: 75.89 kB / 257 MB, free: 0.9609 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002721/0.01566, allocations: 136.5 kB / 257.1 MB, free: 0.7969 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004399/0.0161, allocations: 216.6 kB / 257.3 MB, free: 0.5547 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.4e-06/0.01611, allocations: 3.938 kB / 257.3 MB, free: 0.5508 MB / 234.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005897/0.0167, allocations: 261.2 kB / 257.6 MB, free: 296 kB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.075e-05/0.01672, allocations: 4 kB / 257.6 MB, free: 292 kB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.014e-05/0.01673, allocations: 4.25 kB / 257.6 MB, free: 288 kB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.35e-05/0.01675, allocations: 8 kB / 257.6 MB, free: 280 kB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000219/0.01697, allocations: 39.91 kB / 257.7 MB, free: 240 kB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.466e-06/0.01698, allocations: 4 kB / 257.7 MB, free: 236 kB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002008/0.01718, allocations: 39.81 kB / 257.7 MB, free: 196 kB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.016e-05/0.0172, allocations: 8 kB / 257.7 MB, free: 188 kB / 234.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.0001835/0.01738, allocations: 147.7 kB / 257.9 MB, free: 28 kB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.45e-05/0.01745, allocations: 23.91 kB / 257.9 MB, free: 4 kB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000378/0.01783, allocations: 135.4 kB / 258 MB, free: 15.86 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/0.01783, allocations: 0 / 258 MB, free: 15.86 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.01783, allocations: 3.938 kB / 258 MB, free: 15.86 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.971e-06/0.01784, allocations: 4 kB / 258 MB, free: 15.86 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007256/0.01857, allocations: 402 kB / 258.4 MB, free: 15.43 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.01857, allocations: 0 / 258.4 MB, free: 15.43 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001303/0.0187, allocations: 19.98 kB / 258.4 MB, free: 15.41 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.0187, allocations: 0 / 258.4 MB, free: 15.41 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.299e-05/0.01872, allocations: 11.98 kB / 258.4 MB, free: 15.39 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.499e-06/0.01873, allocations: 3.938 kB / 258.4 MB, free: 15.39 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.01873, allocations: 4 kB / 258.4 MB, free: 15.39 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005204/0.01925, allocations: 288.1 kB / 258.7 MB, free: 15.09 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.179e-05/0.01928, allocations: 19.84 kB / 258.7 MB, free: 15.07 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.815e-05/0.01933, allocations: 12.05 kB / 258.8 MB, free: 15.05 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001828/0.01951, allocations: 11.98 kB / 258.8 MB, free: 15.04 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.771e-05/0.0196, allocations: 19.97 kB / 258.8 MB, free: 15.02 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.489e-05/0.01963, allocations: 11.98 kB / 258.8 MB, free: 15.01 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.000153/0.01978, allocations: 140.2 kB / 258.9 MB, free: 14.88 MB / 250.7 MB Notification: Performance of sort global known variables: time 1e-07/0.01978, allocations: 4 kB / 258.9 MB, free: 14.87 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003314/0.02011, allocations: 35.95 kB / 259 MB, free: 14.84 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.0002199/0.02033, allocations: 123 kB / 259.1 MB, free: 14.7 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0004694/0.0208, allocations: 163.4 kB / 259.3 MB, free: 14.55 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.0208, allocations: 0.5 kB / 259.3 MB, free: 14.55 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002186/0.02102, allocations: 79.89 kB / 259.3 MB, free: 14.47 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000388/0.02141, allocations: 27.97 kB / 259.4 MB, free: 14.44 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000818/0.02223, allocations: 365.2 kB / 259.7 MB, free: 14.06 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001628/0.02239, allocations: 124.8 kB / 259.8 MB, free: 13.92 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0001147/0.0225, allocations: 33.45 kB / 259.9 MB, free: 13.89 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.968e-05/0.02258, allocations: 24.5 kB / 259.9 MB, free: 13.86 MB / 250.7 MB Notification: Performance of SimCode: time 5.31e-07/0.02258, allocations: 0 / 259.9 MB, free: 13.86 MB / 250.7 MB Notification: Performance of Templates: time 0.007847/0.03043, allocations: 2.159 MB / 262.1 MB, free: 11.73 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=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.625514650950208]