Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001522/0.001522, allocations: 191.5 kB / 17.43 MB, free: 4.402 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.545/1.545, allocations: 229.5 MB / 247.7 MB, free: 6.297 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007519/0.0007519, allocations: 95.34 kB / 299.8 MB, free: 5.371 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002611/0.0002613, allocations: 8 kB / 360.6 MB, free: 8.508 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2814/0.2816, allocations: 51.41 MB / 412 MB, free: 25.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.002064/0.2838, allocations: 1.504 MB / 413.5 MB, free: 24.42 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009976/0.2848, allocations: 0.9264 MB / 414.5 MB, free: 23.41 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001166/0.2849, allocations: 9.188 kB / 414.5 MB, free: 23.41 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001133/0.285, allocations: 19.8 kB / 414.5 MB, free: 23.39 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001116/0.2852, allocations: 21.28 kB / 414.5 MB, free: 23.37 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002141/0.2854, allocations: 71.88 kB / 414.6 MB, free: 23.3 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001605/0.2856, allocations: 171.2 kB / 414.8 MB, free: 23.13 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001385/0.2857, allocations: 71.84 kB / 414.8 MB, free: 23.06 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001224/0.2858, allocations: 75.62 kB / 414.9 MB, free: 22.98 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001068/0.2859, allocations: 67.62 kB / 415 MB, free: 22.92 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.201e-05/0.286, allocations: 7.938 kB / 415 MB, free: 22.91 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.269e-05/0.286, allocations: 19.98 kB / 415 MB, free: 22.89 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.252e-05/0.2861, allocations: 35.84 kB / 415 MB, free: 22.86 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.841e-05/0.2862, allocations: 97.19 kB / 415.1 MB, free: 22.75 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001642/0.2864, allocations: 168.9 kB / 415.3 MB, free: 22.59 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.2864, allocations: 0 / 415.3 MB, free: 22.59 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2864, allocations: 0 / 415.3 MB, free: 22.59 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.398e-06/0.2864, allocations: 0 / 415.3 MB, free: 22.59 MB / 298.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.0006867/0.2871, allocations: 490.7 kB / 415.8 MB, free: 22.06 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.263e-05/0.2871, allocations: 12.03 kB / 415.8 MB, free: 22.05 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001383/0.2873, allocations: 28.73 kB / 415.8 MB, free: 22.02 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001924/0.2875, allocations: 243.8 kB / 416 MB, free: 21.75 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.145e-05/0.2875, allocations: 12.38 kB / 416.1 MB, free: 21.73 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.353e-05/0.2875, allocations: 12.38 kB / 416.1 MB, free: 21.72 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003244/0.2879, allocations: 226.1 kB / 416.3 MB, free: 21.48 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.027e-05/0.2879, allocations: 0 / 416.3 MB, free: 21.48 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.803e-05/0.2879, allocations: 4 kB / 416.3 MB, free: 21.48 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.899e-05/0.2879, allocations: 11.98 kB / 416.3 MB, free: 21.46 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002906/0.2882, allocations: 155.7 kB / 416.5 MB, free: 21.31 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000894/0.2891, allocations: 0.7934 MB / 417.3 MB, free: 20.46 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005622/0.2897, allocations: 206.6 kB / 417.5 MB, free: 20.25 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000138/0.2898, allocations: 68.81 kB / 417.5 MB, free: 20.18 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.838e-05/0.2899, allocations: 0 / 417.5 MB, free: 20.18 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002305/0.2901, allocations: 161 kB / 417.7 MB, free: 20 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.142e-06/0.2901, allocations: 0 / 417.7 MB, free: 20 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005091/0.2907, allocations: 257.3 kB / 417.9 MB, free: 19.74 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.557e-05/0.2907, allocations: 81.11 kB / 418 MB, free: 19.64 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001436/0.2909, allocations: 218.8 kB / 418.2 MB, free: 19.42 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.648e-05/0.2909, allocations: 33.7 kB / 418.3 MB, free: 19.38 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.002e-05/0.2909, allocations: 144.2 kB / 418.4 MB, free: 19.24 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.332e-05/0.291, allocations: 27.73 kB / 418.4 MB, free: 19.21 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.187e-06/0.291, allocations: 4.375 kB / 418.4 MB, free: 19.21 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.286e-05/0.291, allocations: 338.8 kB / 418.8 MB, free: 18.87 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001403/0.2912, allocations: 67.95 kB / 418.8 MB, free: 18.8 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001493/0.2914, allocations: 144.5 kB / 419 MB, free: 18.63 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002759/0.2916, allocations: 212.3 kB / 419.2 MB, free: 18.39 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.2916, allocations: 0 / 419.2 MB, free: 18.39 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003685/0.292, allocations: 261.1 kB / 419.4 MB, free: 18.13 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.439e-05/0.292, allocations: 4 kB / 419.4 MB, free: 18.12 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.2921, allocations: 4 kB / 419.4 MB, free: 18.12 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.481e-05/0.2921, allocations: 4.25 kB / 419.4 MB, free: 18.12 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001646/0.2922, allocations: 47.91 kB / 419.5 MB, free: 18.07 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.344e-06/0.2923, allocations: 4 kB / 419.5 MB, free: 18.07 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001579/0.2924, allocations: 43.75 kB / 419.5 MB, free: 18.02 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.531e-05/0.2925, allocations: 11.94 kB / 419.5 MB, free: 18.01 MB / 298.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 (sum.u[1],product.u[1],product.u[2],product.y,$PRE.triggeredAdd.y,triggeredAdd.y,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.booleanPulse1.pulseStart,booleanPulse1.pulseStart,multiSwitch1.u[1],multiSwitch1.u[2],$PRE.multiSwitch1.y,multiSwitch1.y,multiSwitch1.firstActiveIndex,$PRE.booleanPulse2.pulseStart,booleanPulse2.pulseStart,multiSwitch1.expr[1],multiSwitch1.expr[2],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.0001008/0.2926, allocations: 155.9 kB / 419.7 MB, free: 17.85 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.269e-05/0.2926, allocations: 19.72 kB / 419.7 MB, free: 17.83 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002066/0.2928, allocations: 135 kB / 419.8 MB, free: 17.69 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.2928, allocations: 0 / 419.8 MB, free: 17.69 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.2928, allocations: 4 kB / 419.9 MB, free: 17.68 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.2928, allocations: 0 / 419.9 MB, free: 17.68 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005029/0.2933, allocations: 482.3 kB / 420.3 MB, free: 17.16 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.2934, allocations: 0 / 420.3 MB, free: 17.16 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001141/0.2935, allocations: 23.92 kB / 420.3 MB, free: 17.13 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.2935, allocations: 0 / 420.3 MB, free: 17.13 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.42e-05/0.2935, allocations: 3.984 kB / 420.4 MB, free: 17.13 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.966e-06/0.2935, allocations: 7.938 kB / 420.4 MB, free: 17.12 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/0.2935, allocations: 320 / 420.4 MB, free: 17.12 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003249/0.2938, allocations: 300 kB / 420.7 MB, free: 16.81 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.971e-05/0.2939, allocations: 96.86 kB / 420.7 MB, free: 16.7 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.031e-05/0.2939, allocations: 7.984 kB / 420.8 MB, free: 16.69 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001649/0.2941, allocations: 27.92 kB / 420.8 MB, free: 16.66 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.534e-05/0.2942, allocations: 24.09 kB / 420.8 MB, free: 16.64 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.658e-05/0.2942, allocations: 11.94 kB / 420.8 MB, free: 16.62 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.162e-05/0.2943, allocations: 152.3 kB / 421 MB, free: 16.48 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2943, allocations: 0 / 421 MB, free: 16.48 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002578/0.2945, allocations: 40 kB / 421 MB, free: 16.44 MB / 298.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.0001241/0.2947, allocations: 103.8 kB / 421.1 MB, free: 16.33 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003307/0.295, allocations: 179.9 kB / 421.3 MB, free: 16.15 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.295, allocations: 0 / 421.3 MB, free: 16.15 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001561/0.2952, allocations: 84.39 kB / 421.4 MB, free: 16.07 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003139/0.2955, allocations: 31.97 kB / 421.4 MB, free: 16.04 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005561/0.2961, allocations: 420.7 kB / 421.8 MB, free: 15.61 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001374/0.2962, allocations: 0.7323 MB / 422.5 MB, free: 14.85 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 9.965e-05/0.2963, allocations: 33.52 kB / 422.6 MB, free: 14.81 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.312e-05/0.2964, allocations: 19.44 kB / 422.6 MB, free: 14.79 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2964, allocations: 0 / 422.6 MB, free: 14.79 MB / 298.7 MB Notification: Performance of Templates: time 0.004066/0.3005, allocations: 1.849 MB / 424.4 MB, free: 12.95 MB / 298.7 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","../files/Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches