Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1") translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001502/0.001502, allocations: 115.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001726/0.001726, allocations: 199.5 kB / 19.36 MB, free: 3.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.422/1.422, allocations: 227.4 MB / 247.5 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001175/0.001175, allocations: 62.38 kB / 308.4 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.1071, allocations: 50.52 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003064/0.1102, allocations: 1.837 MB / 360.7 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001297/0.1115, allocations: 0.6972 MB / 361.4 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001054/0.1117, allocations: 0 / 361.4 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001571/0.1118, allocations: 35.66 kB / 361.5 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001253/0.112, allocations: 23.69 kB / 361.5 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003398/0.1123, allocations: 99.77 kB / 361.6 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000236/0.1126, allocations: 175.5 kB / 361.8 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001965/0.1128, allocations: 74.62 kB / 361.8 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001827/0.113, allocations: 83.62 kB / 361.9 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001648/0.1131, allocations: 91.53 kB / 362 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.047e-05/0.1132, allocations: 16 kB / 362 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.466e-05/0.1133, allocations: 24 kB / 362 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.678e-05/0.1134, allocations: 43.84 kB / 362.1 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.671e-05/0.1135, allocations: 83.47 kB / 362.2 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002778/0.1138, allocations: 207.1 kB / 362.4 MB, free: 9.848 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.1138, allocations: 0 / 362.4 MB, free: 9.848 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.013e-06/0.1138, allocations: 0 / 362.4 MB, free: 9.848 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.553e-06/0.1138, allocations: 4 kB / 362.4 MB, free: 9.844 MB / 302.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.0009347/0.1147, allocations: 0.4986 MB / 362.9 MB, free: 9.297 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/0.1148, allocations: 15.97 kB / 362.9 MB, free: 9.281 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001679/0.1149, allocations: 32.64 kB / 362.9 MB, free: 9.25 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003084/0.1153, allocations: 249.5 kB / 363.2 MB, free: 8.965 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.907e-05/0.1153, allocations: 20.12 kB / 363.2 MB, free: 8.945 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001055/0.1154, allocations: 20.31 kB / 363.2 MB, free: 8.926 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003773/0.1158, allocations: 209.8 kB / 363.4 MB, free: 8.703 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.009e-05/0.1158, allocations: 0 / 363.4 MB, free: 8.703 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.32e-05/0.1158, allocations: 8 kB / 363.4 MB, free: 8.695 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.197e-05/0.1159, allocations: 11.84 kB / 363.4 MB, free: 8.684 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003147/0.1162, allocations: 147.8 kB / 363.6 MB, free: 8.539 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001038/0.1172, allocations: 0.7778 MB / 364.3 MB, free: 7.699 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005808/0.1178, allocations: 186.6 kB / 364.5 MB, free: 7.508 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001392/0.118, allocations: 64.81 kB / 364.6 MB, free: 7.441 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.538e-05/0.118, allocations: 8 kB / 364.6 MB, free: 7.434 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002545/0.1183, allocations: 148.3 kB / 364.7 MB, free: 7.273 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.533e-06/0.1183, allocations: 0 / 364.7 MB, free: 7.273 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005596/0.1189, allocations: 241.3 kB / 365 MB, free: 7.031 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.659e-05/0.1189, allocations: 85.11 kB / 365.1 MB, free: 6.93 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002037/0.1191, allocations: 226.9 kB / 365.3 MB, free: 6.695 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.582e-05/0.1192, allocations: 29.7 kB / 365.3 MB, free: 6.66 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001041/0.1193, allocations: 144.2 kB / 365.5 MB, free: 6.516 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.307e-05/0.1193, allocations: 31.66 kB / 365.5 MB, free: 6.484 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.767e-05/0.1194, allocations: 57.59 kB / 365.5 MB, free: 6.422 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001236/0.1195, allocations: 334.8 kB / 365.9 MB, free: 6.086 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001472/0.1197, allocations: 71.95 kB / 365.9 MB, free: 6.016 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000185/0.1199, allocations: 133.6 kB / 366.1 MB, free: 5.855 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003272/0.1202, allocations: 212.4 kB / 366.3 MB, free: 5.617 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.1202, allocations: 0 / 366.3 MB, free: 5.617 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004336/0.1207, allocations: 257.3 kB / 366.5 MB, free: 5.359 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.595e-05/0.1207, allocations: 4 kB / 366.5 MB, free: 5.355 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.747e-06/0.1207, allocations: 7.984 kB / 366.5 MB, free: 5.348 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.205e-05/0.1207, allocations: 4 kB / 366.5 MB, free: 5.344 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001646/0.1209, allocations: 40.16 kB / 366.6 MB, free: 5.305 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.139e-05/0.1209, allocations: 7.938 kB / 366.6 MB, free: 5.297 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001655/0.1211, allocations: 32.2 kB / 366.6 MB, free: 5.266 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.274e-05/0.1211, allocations: 19.92 kB / 366.6 MB, free: 5.246 MB / 302.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.0001455/0.1213, allocations: 144.6 kB / 366.8 MB, free: 5.098 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.766e-05/0.1213, allocations: 23.7 kB / 366.8 MB, free: 5.074 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002626/0.1216, allocations: 131 kB / 366.9 MB, free: 4.938 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.439e-06/0.1216, allocations: 7.922 kB / 366.9 MB, free: 4.93 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.1216, allocations: 4 kB / 366.9 MB, free: 4.926 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.1216, allocations: 0 / 366.9 MB, free: 4.926 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005892/0.1222, allocations: 482.2 kB / 367.4 MB, free: 4.398 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.1222, allocations: 0 / 367.4 MB, free: 4.398 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001152/0.1223, allocations: 19.98 kB / 367.4 MB, free: 4.379 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.897e-06/0.1224, allocations: 7.938 kB / 367.4 MB, free: 4.371 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.654e-05/0.1224, allocations: 7.984 kB / 367.4 MB, free: 4.363 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.125e-06/0.1224, allocations: 3.938 kB / 367.5 MB, free: 4.359 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.1224, allocations: 4 kB / 367.5 MB, free: 4.355 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004288/0.1228, allocations: 280.1 kB / 367.7 MB, free: 4.062 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.017e-05/0.1229, allocations: 92.86 kB / 367.8 MB, free: 3.953 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.514e-05/0.123, allocations: 8 kB / 367.8 MB, free: 3.945 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001666/0.1231, allocations: 27.89 kB / 367.9 MB, free: 3.918 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.764e-05/0.1232, allocations: 19.97 kB / 367.9 MB, free: 3.898 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.086e-05/0.1232, allocations: 8 kB / 367.9 MB, free: 3.891 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001219/0.1234, allocations: 140.7 kB / 368 MB, free: 3.754 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1234, allocations: 0 / 368 MB, free: 3.754 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003001/0.1237, allocations: 51.89 kB / 368.1 MB, free: 3.703 MB / 302.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.0001633/0.1238, allocations: 119.1 kB / 368.2 MB, free: 3.578 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003689/0.1242, allocations: 167.8 kB / 368.4 MB, free: 3.414 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.1242, allocations: 0 / 368.4 MB, free: 3.414 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001772/0.1244, allocations: 80.06 kB / 368.4 MB, free: 3.336 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003224/0.1247, allocations: 32.61 kB / 368.5 MB, free: 3.305 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006456/0.1254, allocations: 361.9 kB / 368.8 MB, free: 2.918 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002789/0.1257, allocations: 0.732 MB / 369.5 MB, free: 2.16 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.899e-05/0.1258, allocations: 33.53 kB / 369.6 MB, free: 2.129 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.906e-05/0.1259, allocations: 23.42 kB / 369.6 MB, free: 2.105 MB / 302.1 MB Notification: Performance of SimCode: time 1.803e-06/0.1259, allocations: 0 / 369.6 MB, free: 2.105 MB / 302.1 MB Notification: Performance of Templates: time 0.005022/0.1309, allocations: 2.104 MB / 371.7 MB, free: 20 kB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.sim & ./Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1 -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Blocks.Examples.IntegerNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches