Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001345/0.001345, allocations: 70.03 kB / 21.24 MB, free: 0.5547 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001438/0.001438, allocations: 153.6 kB / 24.49 MB, free: 3.852 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.447/1.447, allocations: 173.4 MB / 201.1 MB, free: 12.7 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1") translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5052,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001501/0.001501, allocations: 47.17 kB / 319.4 MB, free: 3.25 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0958/0.0973, allocations: 52.16 MB / 371.6 MB, free: 7.336 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003261/0.1006, allocations: 1.796 MB / 373.4 MB, free: 5.527 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001201/0.1018, allocations: 0.5883 MB / 374 MB, free: 4.938 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001067/0.1019, allocations: 7.938 kB / 374 MB, free: 4.93 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001387/0.102, allocations: 27.67 kB / 374 MB, free: 4.902 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001384/0.1021, allocations: 39.66 kB / 374 MB, free: 4.863 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002973/0.1024, allocations: 79.84 kB / 374.1 MB, free: 4.785 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002534/0.1027, allocations: 179.4 kB / 374.3 MB, free: 4.609 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001645/0.1029, allocations: 50.92 kB / 374.3 MB, free: 4.551 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001304/0.103, allocations: 87.62 kB / 374.4 MB, free: 4.465 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001566/0.1032, allocations: 71.62 kB / 374.5 MB, free: 4.395 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.616e-05/0.1032, allocations: 16 kB / 374.5 MB, free: 4.379 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.425e-05/0.1033, allocations: 23.98 kB / 374.5 MB, free: 4.355 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.052e-05/0.1033, allocations: 47.83 kB / 374.6 MB, free: 4.309 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.901e-05/0.1034, allocations: 67.59 kB / 374.6 MB, free: 4.242 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000309/0.1037, allocations: 199.1 kB / 374.8 MB, free: 4.047 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.1037, allocations: 4 kB / 374.8 MB, free: 4.043 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1037, allocations: 3.938 kB / 374.8 MB, free: 4.039 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.851e-06/0.1038, allocations: 0 / 374.8 MB, free: 4.039 MB / 334.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.0009833/0.1047, allocations: 445.3 kB / 375.3 MB, free: 3.574 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.997e-05/0.1048, allocations: 12.92 kB / 375.3 MB, free: 3.562 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.135e-05/0.1048, allocations: 24.8 kB / 375.3 MB, free: 3.539 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002864/0.1051, allocations: 178.1 kB / 375.5 MB, free: 3.34 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.791e-05/0.1051, allocations: 16.38 kB / 375.5 MB, free: 3.324 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.939e-05/0.1052, allocations: 19.94 kB / 375.5 MB, free: 3.305 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004217/0.1056, allocations: 217.9 kB / 375.7 MB, free: 3.07 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.111e-05/0.1056, allocations: 0 / 375.7 MB, free: 3.07 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.862e-05/0.1056, allocations: 4 kB / 375.7 MB, free: 3.066 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.355e-05/0.1056, allocations: 8 kB / 375.7 MB, free: 3.059 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003447/0.106, allocations: 135.8 kB / 375.9 MB, free: 2.926 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001105/0.1071, allocations: 0.6837 MB / 376.6 MB, free: 2.199 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007025/0.1078, allocations: 190.6 kB / 376.7 MB, free: 2.004 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001555/0.108, allocations: 56.83 kB / 376.8 MB, free: 1.945 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.736e-05/0.108, allocations: 7.984 kB / 376.8 MB, free: 1.938 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003231/0.1083, allocations: 141 kB / 376.9 MB, free: 1.781 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.653e-06/0.1083, allocations: 4 kB / 376.9 MB, free: 1.777 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006562/0.109, allocations: 253.3 kB / 377.2 MB, free: 1.523 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.295e-05/0.1091, allocations: 77.11 kB / 377.3 MB, free: 1.43 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002429/0.1093, allocations: 223.6 kB / 377.5 MB, free: 1.203 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.222e-05/0.1093, allocations: 33.7 kB / 377.5 MB, free: 1.164 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001284/0.1095, allocations: 140.3 kB / 377.7 MB, free: 1.023 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.721e-05/0.1095, allocations: 39.73 kB / 377.7 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.974e-05/0.1096, allocations: 61.62 kB / 377.8 MB, free: 0.918 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001702/0.1098, allocations: 326.8 kB / 378.1 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000175/0.1099, allocations: 71.95 kB / 378.1 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002222/0.1102, allocations: 132.5 kB / 378.3 MB, free: 368 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003939/0.1106, allocations: 216.3 kB / 378.5 MB, free: 120 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.1106, allocations: 0 / 378.5 MB, free: 120 kB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004984/0.1111, allocations: 245.2 kB / 378.7 MB, free: 15.87 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.903e-05/0.1111, allocations: 7.984 kB / 378.7 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.998e-06/0.1111, allocations: 4.25 kB / 378.7 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.866e-05/0.1111, allocations: 8 kB / 378.7 MB, free: 15.85 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000192/0.1113, allocations: 35.92 kB / 378.8 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.116e-05/0.1113, allocations: 4 kB / 378.8 MB, free: 15.81 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000183/0.1115, allocations: 35.8 kB / 378.8 MB, free: 15.78 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.61e-05/0.1115, allocations: 15.98 kB / 378.8 MB, free: 15.76 MB / 350.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.0001514/0.1117, allocations: 147.8 kB / 379 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.118e-05/0.1117, allocations: 15.91 kB / 379 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002716/0.112, allocations: 135 kB / 379.1 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.049e-06/0.112, allocations: 4 kB / 379.1 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.112, allocations: 0 / 379.1 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.574e-06/0.112, allocations: 3.938 kB / 379.1 MB, free: 15.44 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005971/0.1126, allocations: 402.8 kB / 379.5 MB, free: 15.01 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.1126, allocations: 0 / 379.5 MB, free: 15.01 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001254/0.1127, allocations: 31.91 kB / 379.6 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.117e-06/0.1127, allocations: 4.094 kB / 379.6 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.261e-05/0.1127, allocations: 3.938 kB / 379.6 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.1127, allocations: 3.938 kB / 379.6 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.1127, allocations: 4 kB / 379.6 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004377/0.1132, allocations: 287.4 kB / 379.9 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.545e-05/0.1132, allocations: 15.84 kB / 379.9 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.33e-05/0.1132, allocations: 11.98 kB / 379.9 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001766/0.1134, allocations: 15.92 kB / 379.9 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.874e-05/0.1135, allocations: 27.91 kB / 379.9 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.099e-05/0.1135, allocations: 7.984 kB / 379.9 MB, free: 14.59 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001272/0.1137, allocations: 137.5 kB / 380.1 MB, free: 14.46 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1137, allocations: 4 kB / 380.1 MB, free: 14.45 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003152/0.114, allocations: 43.89 kB / 380.1 MB, free: 14.41 MB / 350.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.0001669/0.1141, allocations: 107.2 kB / 380.2 MB, free: 14.3 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000426/0.1146, allocations: 159.8 kB / 380.4 MB, free: 14.14 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.1146, allocations: 0.5 kB / 380.4 MB, free: 14.14 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001969/0.1148, allocations: 79.89 kB / 380.5 MB, free: 14.06 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000366/0.1151, allocations: 30.62 kB / 380.5 MB, free: 14.04 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007306/0.1159, allocations: 365.5 kB / 380.8 MB, free: 13.65 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001258/0.116, allocations: 120.9 kB / 381 MB, free: 13.51 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.986e-05/0.1161, allocations: 33.45 kB / 381 MB, free: 13.47 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.118e-05/0.1161, allocations: 24.5 kB / 381 MB, free: 13.45 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1161, allocations: 192 / 381 MB, free: 13.45 MB / 350.1 MB Notification: Performance of Templates: time 0.005761/0.1219, allocations: 2.146 MB / 383.2 MB, free: 11.34 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1 -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.333380474941805]