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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001065/0.001065, allocations: 104.2 kB / 17.59 MB, free: 5.43 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001012/0.001012, allocations: 191.6 kB / 18.52 MB, free: 4.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.367/1.367, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001013/0.001013, allocations: 39.41 kB / 301.3 MB, free: 5.879 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.1065, allocations: 49.45 MB / 350.7 MB, free: 4.426 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.004031/0.1105, allocations: 1.806 MB / 352.5 MB, free: 2.594 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001415/0.112, allocations: 0.627 MB / 353.2 MB, free: 1.965 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001919/0.1122, allocations: 3.938 kB / 353.2 MB, free: 1.961 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001746/0.1124, allocations: 35.61 kB / 353.2 MB, free: 1.926 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001788/0.1126, allocations: 31.72 kB / 353.2 MB, free: 1.895 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004016/0.113, allocations: 79.8 kB / 353.3 MB, free: 1.816 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002668/0.1133, allocations: 175.5 kB / 353.5 MB, free: 1.645 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001999/0.1135, allocations: 74.64 kB / 353.5 MB, free: 1.57 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001271/0.1136, allocations: 75.69 kB / 353.6 MB, free: 1.496 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001556/0.1138, allocations: 87.55 kB / 353.7 MB, free: 1.41 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.472e-05/0.1139, allocations: 16 kB / 353.7 MB, free: 1.395 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.559e-05/0.1139, allocations: 20 kB / 353.7 MB, free: 1.375 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.956e-05/0.114, allocations: 51.77 kB / 353.8 MB, free: 1.324 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.004e-05/0.1141, allocations: 83.53 kB / 353.9 MB, free: 1.242 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002868/0.1144, allocations: 187.5 kB / 354.1 MB, free: 1.059 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.1144, allocations: 4 kB / 354.1 MB, free: 1.055 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1144, allocations: 0 / 354.1 MB, free: 1.055 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.182e-06/0.1145, allocations: 0 / 354.1 MB, free: 1.055 MB / 286.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.0009669/0.1154, allocations: 0.5024 MB / 354.6 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.667e-05/0.1155, allocations: 15.89 kB / 354.6 MB, free: 500 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.27e-05/0.1156, allocations: 24.59 kB / 354.6 MB, free: 476 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002669/0.1158, allocations: 252.4 kB / 354.8 MB, free: 184 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.149e-05/0.1159, allocations: 8.375 kB / 354.9 MB, free: 176 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.914e-05/0.1159, allocations: 20.12 kB / 354.9 MB, free: 156 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004033/0.1163, allocations: 205.9 kB / 355.1 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/0.1163, allocations: 3.938 kB / 355.1 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.263e-05/0.1164, allocations: 12 kB / 355.1 MB, free: 15.91 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.935e-05/0.1164, allocations: 11.98 kB / 355.1 MB, free: 15.9 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003209/0.1167, allocations: 135.8 kB / 355.2 MB, free: 15.77 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00105/0.1178, allocations: 0.7778 MB / 356 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006323/0.1184, allocations: 190.6 kB / 356.2 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001467/0.1186, allocations: 64.81 kB / 356.3 MB, free: 14.67 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.829e-05/0.1186, allocations: 4 kB / 356.3 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002699/0.1189, allocations: 152.9 kB / 356.4 MB, free: 14.5 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.503e-06/0.1189, allocations: 0 / 356.4 MB, free: 14.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005799/0.1195, allocations: 241.6 kB / 356.7 MB, free: 14.25 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.338e-05/0.1196, allocations: 81.11 kB / 356.7 MB, free: 14.16 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001949/0.1198, allocations: 222.8 kB / 356.9 MB, free: 13.93 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.076e-05/0.1198, allocations: 37.64 kB / 357 MB, free: 13.89 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.903e-05/0.1199, allocations: 148.2 kB / 357.1 MB, free: 13.74 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.863e-05/0.12, allocations: 27.56 kB / 357.2 MB, free: 13.71 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.773e-05/0.12, allocations: 61.69 kB / 357.2 MB, free: 13.64 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001214/0.1202, allocations: 330.8 kB / 357.5 MB, free: 13.31 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001532/0.1203, allocations: 63.95 kB / 357.6 MB, free: 13.25 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001909/0.1205, allocations: 144.5 kB / 357.7 MB, free: 13.08 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003457/0.1209, allocations: 212.3 kB / 358 MB, free: 12.84 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.1209, allocations: 0 / 358 MB, free: 12.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004487/0.1214, allocations: 253.1 kB / 358.2 MB, free: 12.59 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.005e-05/0.1214, allocations: 8 kB / 358.2 MB, free: 12.58 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.503e-06/0.1214, allocations: 0 / 358.2 MB, free: 12.58 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.077e-05/0.1214, allocations: 4 kB / 358.2 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001751/0.1216, allocations: 39.91 kB / 358.2 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.222e-05/0.1216, allocations: 11.88 kB / 358.3 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001663/0.1218, allocations: 32.08 kB / 358.3 MB, free: 12.49 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.982e-05/0.1218, allocations: 11.98 kB / 358.3 MB, free: 12.48 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.0001374/0.122, allocations: 152 kB / 358.5 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.442e-05/0.122, allocations: 15.81 kB / 358.5 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002536/0.1223, allocations: 127.4 kB / 358.6 MB, free: 12.17 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.781e-06/0.1223, allocations: 4 kB / 358.6 MB, free: 12.17 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.018e-05/0.1223, allocations: 7.938 kB / 358.6 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/0.1223, allocations: 11.92 kB / 358.6 MB, free: 12.15 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006243/0.1229, allocations: 478.2 kB / 359.1 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.123, allocations: 0 / 359.1 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001147/0.1231, allocations: 19.98 kB / 359.1 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.459e-05/0.1231, allocations: 3.938 kB / 359.1 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.045e-05/0.1231, allocations: 11.92 kB / 359.1 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.1231, allocations: 4 kB / 359.1 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.1231, allocations: 192 / 359.1 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004432/0.1236, allocations: 287.1 kB / 359.4 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.212e-05/0.1237, allocations: 100.8 kB / 359.5 MB, free: 11.17 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.514e-05/0.1237, allocations: 7.938 kB / 359.5 MB, free: 11.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001702/0.1239, allocations: 19.97 kB / 359.5 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.956e-05/0.124, allocations: 19.97 kB / 359.5 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.892e-05/0.124, allocations: 8 kB / 359.6 MB, free: 11.12 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001325/0.1242, allocations: 144.6 kB / 359.7 MB, free: 10.98 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1242, allocations: 4 kB / 359.7 MB, free: 10.97 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000308/0.1245, allocations: 32 kB / 359.7 MB, free: 10.94 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.0002021/0.1247, allocations: 119.1 kB / 359.8 MB, free: 10.82 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004551/0.1252, allocations: 179.9 kB / 360 MB, free: 10.64 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.1252, allocations: 0 / 360 MB, free: 10.64 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001921/0.1254, allocations: 75.89 kB / 360.1 MB, free: 10.57 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003678/0.1258, allocations: 23.98 kB / 360.1 MB, free: 10.54 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007466/0.1265, allocations: 403.8 kB / 360.5 MB, free: 10.11 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003025/0.1268, allocations: 0.7358 MB / 361.3 MB, free: 9.352 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.741e-05/0.1269, allocations: 19.44 kB / 361.3 MB, free: 9.332 MB / 302.1 MB Notification: Performance of SimCode: time 2e-07/0.1269, allocations: 0 / 361.3 MB, free: 9.332 MB / 302.1 MB Notification: Performance of Templates: time 0.004418/0.1313, allocations: 2.435 MB / 363.7 MB, free: 6.906 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.makefile (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 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) 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) Reference file matches