Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1") translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_3.2.3_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.00143/0.00143, allocations: 112.3 kB / 18.41 MB, free: 4.695 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.001731/0.001731, allocations: 182.2 kB / 19.34 MB, free: 3.777 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.289/1.289, allocations: 205.1 MB / 225.2 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001194/0.001194, allocations: 43.94 kB / 329.2 MB, free: 3.328 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07181/0.07301, allocations: 46.62 MB / 375.8 MB, free: 4.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.002823/0.07587, allocations: 1.816 MB / 377.6 MB, free: 2.77 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001114/0.077, allocations: 0.6668 MB / 378.3 MB, free: 2.094 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001012/0.07712, allocations: 7.938 kB / 378.3 MB, free: 2.086 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001303/0.07727, allocations: 35.66 kB / 378.3 MB, free: 2.051 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001297/0.07741, allocations: 27.72 kB / 378.4 MB, free: 2.023 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002846/0.0777, allocations: 79.8 kB / 378.4 MB, free: 1.945 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002314/0.07795, allocations: 179.4 kB / 378.6 MB, free: 1.77 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001722/0.07813, allocations: 74.62 kB / 378.7 MB, free: 1.695 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001175/0.07825, allocations: 71.7 kB / 378.8 MB, free: 1.625 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001424/0.07841, allocations: 87.55 kB / 378.8 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.54e-05/0.07845, allocations: 19.98 kB / 378.9 MB, free: 1.52 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.273e-05/0.07853, allocations: 23.98 kB / 378.9 MB, free: 1.496 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.942e-05/0.0786, allocations: 43.84 kB / 378.9 MB, free: 1.453 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.45e-05/0.0787, allocations: 91.47 kB / 379 MB, free: 1.363 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000241/0.07895, allocations: 199.1 kB / 379.2 MB, free: 1.168 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.121e-06/0.07896, allocations: 4 kB / 379.2 MB, free: 1.164 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.07897, allocations: 0 / 379.2 MB, free: 1.164 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.43e-06/0.07898, allocations: 0 / 379.2 MB, free: 1.164 MB / 318.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.000845/0.07983, allocations: 0.4986 MB / 379.7 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.239e-05/0.07987, allocations: 8.031 kB / 379.7 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.715e-05/0.07994, allocations: 28.75 kB / 379.8 MB, free: 0.582 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002639/0.08021, allocations: 243.8 kB / 380 MB, free: 312 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.074e-05/0.08024, allocations: 12.36 kB / 380 MB, free: 300 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.76e-05/0.08027, allocations: 24.36 kB / 380 MB, free: 276 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003839/0.08066, allocations: 213.6 kB / 380.2 MB, free: 44 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.566e-06/0.08068, allocations: 0 / 380.2 MB, free: 44 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.123e-05/0.08071, allocations: 8 kB / 380.2 MB, free: 36 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.152e-05/0.08074, allocations: 11.86 kB / 380.3 MB, free: 24 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1872/0.268, allocations: 137.7 kB / 380.4 MB, free: 13.16 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001028/0.269, allocations: 0.779 MB / 381.2 MB, free: 12.65 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006364/0.2697, allocations: 187.9 kB / 381.4 MB, free: 12.63 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001413/0.2698, allocations: 63.22 kB / 381.4 MB, free: 12.62 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.633e-05/0.2699, allocations: 5.953 kB / 381.4 MB, free: 12.62 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002613/0.2702, allocations: 147.8 kB / 381.6 MB, free: 12.56 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 2.134e-06/0.2702, allocations: 0.7656 kB / 381.6 MB, free: 12.56 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005665/0.2707, allocations: 244.6 kB / 381.8 MB, free: 12.52 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.948e-05/0.2708, allocations: 83.98 kB / 381.9 MB, free: 12.43 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001696/0.271, allocations: 217.7 kB / 382.1 MB, free: 12.32 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.996e-05/0.271, allocations: 31.23 kB / 382.1 MB, free: 12.29 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.074e-05/0.2711, allocations: 142.1 kB / 382.3 MB, free: 12.19 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.896e-05/0.2711, allocations: 38.33 kB / 382.3 MB, free: 12.18 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.912e-05/0.2712, allocations: 55.59 kB / 382.4 MB, free: 12.16 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.651e-05/0.2712, allocations: 336.1 kB / 382.7 MB, free: 11.85 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000154/0.2714, allocations: 68.62 kB / 382.8 MB, free: 11.85 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001683/0.2716, allocations: 139.9 kB / 382.9 MB, free: 11.77 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003393/0.2719, allocations: 219.8 kB / 383.1 MB, free: 11.68 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.2719, allocations: 1.125 kB / 383.1 MB, free: 11.68 MB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004945/0.2724, allocations: 249.8 kB / 383.4 MB, free: 11.62 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.856e-05/0.2725, allocations: 6.469 kB / 383.4 MB, free: 11.62 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.2725, allocations: 2.531 kB / 383.4 MB, free: 11.62 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.969e-05/0.2725, allocations: 3.969 kB / 383.4 MB, free: 11.62 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001978/0.2727, allocations: 37.61 kB / 383.4 MB, free: 11.62 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.138e-05/0.2727, allocations: 3.891 kB / 383.4 MB, free: 11.62 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001915/0.2729, allocations: 41.77 kB / 383.4 MB, free: 11.61 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.186e-05/0.2729, allocations: 12.39 kB / 383.5 MB, free: 11.61 MB / 318.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.0001142/0.2731, allocations: 149 kB / 383.6 MB, free: 11.48 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.518e-05/0.2731, allocations: 17.28 kB / 383.6 MB, free: 11.48 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002522/0.2734, allocations: 131.1 kB / 383.7 MB, free: 11.43 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.143e-06/0.2734, allocations: 2.953 kB / 383.8 MB, free: 11.43 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.2734, allocations: 0.9375 kB / 383.8 MB, free: 11.43 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.014e-05/0.2734, allocations: 94.38 kB / 383.8 MB, free: 11.32 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.203e-05/0.2735, allocations: 7.047 kB / 383.9 MB, free: 11.32 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001576/0.2736, allocations: 17.81 kB / 383.9 MB, free: 11.32 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.449e-05/0.2737, allocations: 24.19 kB / 383.9 MB, free: 11.31 MB / 318.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0004912/0.2742, allocations: 354.8 kB / 384.2 MB, free: 11.09 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003834/0.2746, allocations: 442.1 kB / 384.7 MB, free: 10.76 MB / 318.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001656/0.2748, allocations: 81.69 kB / 384.8 MB, free: 10.73 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001006/0.2749, allocations: 149.6 kB / 384.9 MB, free: 10.64 MB / 318.1 MB Notification: Performance of Backend: time 4.11e-07/0.2749, allocations: 0 / 384.9 MB, free: 10.64 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006236/0.2755, allocations: 188.8 kB / 385.1 MB, free: 10.54 MB / 318.1 MB Notification: Performance of SimCode: time 0.0005922/0.2761, allocations: 0.7728 MB / 385.9 MB, free: 9.855 MB / 318.1 MB Notification: Performance of Templates: time 0.005604/0.2818, allocations: 2.337 MB / 388.2 MB, free: 9.707 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.makefile (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches