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.0008571/0.0008572, allocations: 87.59 kB / 17.31 MB, free: 5.59 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.0009475/0.0009475, allocations: 176.4 kB / 18.21 MB, free: 5.195 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.238/1.238, allocations: 223.3 MB / 242.3 MB, free: 216 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002296/0.0002297, allocations: 7.938 kB / 302.1 MB, free: 6.168 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07042/0.07066, allocations: 50.41 MB / 352.5 MB, free: 3.742 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.001672/0.07235, allocations: 1.524 MB / 354 MB, free: 2.199 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009269/0.07329, allocations: 0.5999 MB / 354.6 MB, free: 1.598 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.819e-05/0.07339, allocations: 8 kB / 354.6 MB, free: 1.59 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 9.896e-05/0.0735, allocations: 27.73 kB / 354.6 MB, free: 1.562 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001069/0.07361, allocations: 19.78 kB / 354.7 MB, free: 1.543 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002264/0.07385, allocations: 75.88 kB / 354.7 MB, free: 1.469 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001864/0.07405, allocations: 167.4 kB / 354.9 MB, free: 1.305 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001441/0.0742, allocations: 66.64 kB / 355 MB, free: 1.234 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.975e-05/0.0743, allocations: 55.77 kB / 355 MB, free: 1.18 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001295/0.07444, allocations: 67.62 kB / 355.1 MB, free: 1.113 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.331e-05/0.07447, allocations: 11.94 kB / 355.1 MB, free: 1.102 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.636e-05/0.07454, allocations: 11.98 kB / 355.1 MB, free: 1.09 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.418e-05/0.0746, allocations: 35.8 kB / 355.1 MB, free: 1.055 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.941e-05/0.07468, allocations: 105.2 kB / 355.2 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001434/0.07484, allocations: 120 kB / 355.4 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.793e-06/0.07485, allocations: 3.938 kB / 355.4 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of FrontEnd: time 6.11e-07/0.07485, allocations: 0 / 355.4 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.737e-06/0.07486, allocations: 0 / 355.4 MB, free: 0.8242 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.0007331/0.0756, allocations: 494.6 kB / 355.8 MB, free: 300 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.924e-05/0.07564, allocations: 8.031 kB / 355.8 MB, free: 292 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.856e-05/0.07569, allocations: 20.75 kB / 355.9 MB, free: 272 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002307/0.07593, allocations: 243.9 kB / 356.1 MB, free: 15.98 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.763e-05/0.07596, allocations: 8.375 kB / 356.1 MB, free: 15.98 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.425e-05/0.076, allocations: 24.12 kB / 356.1 MB, free: 15.95 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000369/0.07637, allocations: 217.9 kB / 356.4 MB, free: 15.72 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.266e-06/0.07639, allocations: 0 / 356.4 MB, free: 15.72 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.94e-05/0.07641, allocations: 4 kB / 356.4 MB, free: 15.71 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.98e-05/0.07644, allocations: 8 kB / 356.4 MB, free: 15.71 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003215/0.07677, allocations: 147.8 kB / 356.5 MB, free: 15.56 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009683/0.07774, allocations: 0.7933 MB / 357.3 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006193/0.07838, allocations: 218.6 kB / 357.5 MB, free: 14.49 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001474/0.07854, allocations: 60.83 kB / 357.6 MB, free: 14.43 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.066e-05/0.07858, allocations: 4 kB / 357.6 MB, free: 14.42 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002573/0.07884, allocations: 153 kB / 357.7 MB, free: 14.25 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.413e-06/0.07885, allocations: 4 kB / 357.7 MB, free: 14.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005616/0.07942, allocations: 257.5 kB / 358 MB, free: 13.99 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.957e-05/0.07947, allocations: 81.11 kB / 358.1 MB, free: 13.89 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001751/0.07965, allocations: 222.9 kB / 358.3 MB, free: 13.67 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.367e-05/0.07968, allocations: 33.64 kB / 358.3 MB, free: 13.63 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.603e-05/0.07977, allocations: 144.2 kB / 358.5 MB, free: 13.48 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.205e-05/0.0798, allocations: 35.55 kB / 358.5 MB, free: 13.45 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.778e-05/0.07986, allocations: 37.7 kB / 358.5 MB, free: 13.41 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.168e-05/0.07995, allocations: 334.8 kB / 358.9 MB, free: 13.07 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001618/0.08012, allocations: 71.95 kB / 358.9 MB, free: 13 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001897/0.08032, allocations: 140.5 kB / 359.1 MB, free: 12.83 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003401/0.08067, allocations: 216.6 kB / 359.3 MB, free: 12.59 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.08068, allocations: 0 / 359.3 MB, free: 12.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004457/0.08113, allocations: 257.2 kB / 359.5 MB, free: 12.33 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.39e-05/0.08116, allocations: 11.94 kB / 359.5 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.08117, allocations: 0 / 359.5 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.132e-05/0.08118, allocations: 4 kB / 359.5 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001725/0.08136, allocations: 48.16 kB / 359.6 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.295e-05/0.08139, allocations: 15.88 kB / 359.6 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001779/0.08157, allocations: 35.81 kB / 359.6 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.748e-05/0.0816, allocations: 8 kB / 359.6 MB, free: 12.21 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.0001174/0.08172, allocations: 148 kB / 359.8 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.718e-05/0.08175, allocations: 23.72 kB / 359.8 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002378/0.082, allocations: 135 kB / 359.9 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.08201, allocations: 3.938 kB / 359.9 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.08202, allocations: 3.938 kB / 359.9 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.08203, allocations: 0 / 359.9 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000547/0.08258, allocations: 478.3 kB / 360.4 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.0826, allocations: 4 kB / 360.4 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001252/0.08273, allocations: 19.98 kB / 360.4 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.762e-06/0.08275, allocations: 11.92 kB / 360.5 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.196e-05/0.08276, allocations: 0 / 360.5 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.664e-06/0.08277, allocations: 0 / 360.5 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.277e-06/0.08278, allocations: 4.188 kB / 360.5 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003971/0.08318, allocations: 302.6 kB / 360.8 MB, free: 11.01 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.28e-05/0.08323, allocations: 92.86 kB / 360.8 MB, free: 10.9 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.218e-05/0.08327, allocations: 11.92 kB / 360.9 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001809/0.08346, allocations: 19.98 kB / 360.9 MB, free: 10.87 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.644e-05/0.08353, allocations: 23.97 kB / 360.9 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.732e-05/0.08356, allocations: 8 kB / 360.9 MB, free: 10.84 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001046/0.08367, allocations: 144.6 kB / 361 MB, free: 10.7 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.08368, allocations: 4 kB / 361 MB, free: 10.69 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002999/0.08398, allocations: 39.91 kB / 361.1 MB, free: 10.65 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.0001131/0.0841, allocations: 111.6 kB / 361.2 MB, free: 10.54 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003802/0.08449, allocations: 187.8 kB / 361.4 MB, free: 10.35 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.0845, allocations: 3.938 kB / 361.4 MB, free: 10.35 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001782/0.08468, allocations: 79.89 kB / 361.5 MB, free: 10.27 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003426/0.08504, allocations: 32.47 kB / 361.5 MB, free: 10.24 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006226/0.08567, allocations: 449.3 kB / 361.9 MB, free: 9.77 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002341/0.08591, allocations: 0.7362 MB / 362.7 MB, free: 9.008 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.808e-05/0.08599, allocations: 23.42 kB / 362.7 MB, free: 8.984 MB / 302.1 MB Notification: Performance of SimCode: time 1.694e-06/0.086, allocations: 0 / 362.7 MB, free: 8.984 MB / 302.1 MB Notification: Performance of Templates: time 0.003933/0.08994, allocations: 2.417 MB / 365.1 MB, free: 6.582 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