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.001618/0.001618, allocations: 112.7 kB / 17.75 MB, free: 5.332 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.001898/0.001899, allocations: 187 kB / 18.68 MB, free: 4.406 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.348/1.348, allocations: 222.9 MB / 242.4 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001061/0.001061, allocations: 43.88 kB / 352 MB, free: 3.258 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.236/0.2371, allocations: 49.45 MB / 401.4 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.002792/0.2399, allocations: 1.822 MB / 403.2 MB, free: 7.031 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001011/0.241, allocations: 0.6232 MB / 403.9 MB, free: 6.406 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.766e-05/0.2411, allocations: 4 kB / 403.9 MB, free: 6.402 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001306/0.2412, allocations: 35.59 kB / 403.9 MB, free: 6.367 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001285/0.2414, allocations: 31.72 kB / 403.9 MB, free: 6.336 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002669/0.2416, allocations: 91.78 kB / 404 MB, free: 6.246 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002133/0.2419, allocations: 171.5 kB / 404.2 MB, free: 6.078 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001647/0.242, allocations: 74.62 kB / 404.3 MB, free: 5.996 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001098/0.2421, allocations: 67.72 kB / 404.3 MB, free: 5.93 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001372/0.2423, allocations: 87.59 kB / 404.4 MB, free: 5.844 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.152e-05/0.2423, allocations: 19.94 kB / 404.4 MB, free: 5.824 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.697e-05/0.2424, allocations: 19.98 kB / 404.4 MB, free: 5.805 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.018e-05/0.2425, allocations: 51.78 kB / 404.5 MB, free: 5.754 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.766e-05/0.2426, allocations: 83.52 kB / 404.6 MB, free: 5.672 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002244/0.2428, allocations: 196.8 kB / 404.8 MB, free: 5.48 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.407e-06/0.2428, allocations: 4 kB / 404.8 MB, free: 5.477 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.2428, allocations: 0 / 404.8 MB, free: 5.477 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.879e-06/0.2428, allocations: 4 kB / 404.8 MB, free: 5.473 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.0008222/0.2437, allocations: 0.4944 MB / 405.3 MB, free: 4.934 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.36e-05/0.2437, allocations: 11.97 kB / 405.3 MB, free: 4.922 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.174e-05/0.2438, allocations: 24.66 kB / 405.3 MB, free: 4.898 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002627/0.244, allocations: 248.3 kB / 405.6 MB, free: 4.617 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.135e-05/0.2441, allocations: 20.36 kB / 405.6 MB, free: 4.598 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.234e-05/0.2441, allocations: 19.94 kB / 405.6 MB, free: 4.578 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003737/0.2445, allocations: 206.3 kB / 405.8 MB, free: 4.355 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.187e-06/0.2445, allocations: 0 / 405.8 MB, free: 4.355 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.946e-05/0.2445, allocations: 8 kB / 405.8 MB, free: 4.348 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.912e-05/0.2446, allocations: 8 kB / 405.8 MB, free: 4.34 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003165/0.2449, allocations: 143.7 kB / 405.9 MB, free: 4.199 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001018/0.2459, allocations: 0.7893 MB / 406.7 MB, free: 3.348 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006135/0.2465, allocations: 186.6 kB / 406.9 MB, free: 3.156 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001504/0.2467, allocations: 64.81 kB / 407 MB, free: 3.09 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.254e-05/0.2467, allocations: 8 kB / 407 MB, free: 3.082 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002534/0.247, allocations: 141 kB / 407.1 MB, free: 2.926 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.833e-06/0.247, allocations: 0 / 407.1 MB, free: 2.926 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005886/0.2476, allocations: 245.3 kB / 407.4 MB, free: 2.68 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.38e-05/0.2477, allocations: 89.09 kB / 407.5 MB, free: 2.574 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001866/0.2478, allocations: 214.8 kB / 407.7 MB, free: 2.352 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.332e-05/0.2479, allocations: 33.7 kB / 407.7 MB, free: 2.312 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.76e-05/0.248, allocations: 148.2 kB / 407.8 MB, free: 2.164 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.828e-05/0.248, allocations: 23.7 kB / 407.9 MB, free: 2.141 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.049e-05/0.2481, allocations: 65.59 kB / 407.9 MB, free: 2.07 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001057/0.2482, allocations: 330.8 kB / 408.3 MB, free: 1.738 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001561/0.2484, allocations: 68.33 kB / 408.3 MB, free: 1.672 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001878/0.2486, allocations: 132.5 kB / 408.5 MB, free: 1.512 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003351/0.2489, allocations: 216.6 kB / 408.7 MB, free: 1.27 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.2489, allocations: 3.938 kB / 408.7 MB, free: 1.266 MB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004451/0.2494, allocations: 245.2 kB / 408.9 MB, free: 1.02 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.564e-05/0.2494, allocations: 8 kB / 408.9 MB, free: 1.012 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.2494, allocations: 3.984 kB / 408.9 MB, free: 1.008 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.532e-05/0.2494, allocations: 4 kB / 408.9 MB, free: 1.004 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001791/0.2496, allocations: 48.16 kB / 409 MB, free: 0.957 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.083e-05/0.2496, allocations: 7.938 kB / 409 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001732/0.2498, allocations: 35.75 kB / 409 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.704e-05/0.2498, allocations: 8 kB / 409 MB, free: 0.9062 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.0001326/0.25, allocations: 148 kB / 409.2 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.197e-05/0.25, allocations: 19.72 kB / 409.2 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002407/0.2503, allocations: 139 kB / 409.3 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.183e-06/0.2503, allocations: 4 kB / 409.3 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.2503, allocations: 0 / 409.3 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.076e-05/0.2503, allocations: 92.86 kB / 409.4 MB, free: 488 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.214e-05/0.2504, allocations: 4 kB / 409.4 MB, free: 484 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001512/0.2505, allocations: 19.97 kB / 409.4 MB, free: 464 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.256e-05/0.2506, allocations: 19.97 kB / 409.5 MB, free: 444 kB / 318.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0005314/0.2512, allocations: 352 kB / 409.8 MB, free: 84 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.00046/0.2516, allocations: 437.7 kB / 410.2 MB, free: 15.64 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001657/0.2518, allocations: 80.06 kB / 410.3 MB, free: 15.56 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001132/0.2519, allocations: 152.5 kB / 410.5 MB, free: 15.41 MB / 334.1 MB Notification: Performance of Backend: time 3.3e-07/0.2519, allocations: 3.938 kB / 410.5 MB, free: 15.41 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006306/0.2526, allocations: 182.5 kB / 410.6 MB, free: 15.22 MB / 334.1 MB Notification: Performance of SimCode: time 0.0007417/0.2533, allocations: 0.7752 MB / 411.4 MB, free: 14.4 MB / 334.1 MB Notification: Performance of Templates: time 0.005298/0.2586, allocations: 2.332 MB / 413.7 MB, free: 12.09 MB / 334.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