Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00111/0.00111, allocations: 118.8 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001249/0.001249, allocations: 201.2 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.436/1.436, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001154/0.001154, allocations: 59.91 kB / 358.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3127/0.3139, allocations: 50.55 MB / 409.2 MB, free: 1.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.002627/0.3166, allocations: 1.832 MB / 411.1 MB, free: 15.73 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001073/0.3177, allocations: 0.6971 MB / 411.8 MB, free: 15.03 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.68e-05/0.3178, allocations: 3.938 kB / 411.8 MB, free: 15.02 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001235/0.3179, allocations: 31.66 kB / 411.8 MB, free: 14.99 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001112/0.318, allocations: 27.73 kB / 411.8 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002731/0.3183, allocations: 91.77 kB / 411.9 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002121/0.3185, allocations: 183.4 kB / 412.1 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001563/0.3187, allocations: 66.64 kB / 412.2 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000158/0.3189, allocations: 91.62 kB / 412.3 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001359/0.319, allocations: 87.59 kB / 412.3 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.008e-05/0.319, allocations: 16 kB / 412.4 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.299e-05/0.3191, allocations: 24 kB / 412.4 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.306e-05/0.3192, allocations: 43.83 kB / 412.4 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.703e-05/0.3193, allocations: 83.42 kB / 412.5 MB, free: 14.28 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002541/0.3195, allocations: 214.3 kB / 412.7 MB, free: 14.07 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.3196, allocations: 0 / 412.7 MB, free: 14.07 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.996e-06/0.3196, allocations: 0 / 412.7 MB, free: 14.07 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.465e-06/0.3196, allocations: 3.938 kB / 412.7 MB, free: 14.07 MB / 334.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.0008247/0.3204, allocations: 0.5101 MB / 413.2 MB, free: 13.51 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.591e-05/0.3205, allocations: 8.031 kB / 413.2 MB, free: 13.5 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001506/0.3206, allocations: 32.78 kB / 413.3 MB, free: 13.47 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002747/0.3209, allocations: 253.5 kB / 413.5 MB, free: 13.18 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.782e-05/0.3209, allocations: 20.38 kB / 413.5 MB, free: 13.16 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.65e-05/0.321, allocations: 16.38 kB / 413.6 MB, free: 13.15 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003778/0.3213, allocations: 209.6 kB / 413.8 MB, free: 12.93 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.878e-06/0.3214, allocations: 0 / 413.8 MB, free: 12.93 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.798e-05/0.3214, allocations: 4 kB / 413.8 MB, free: 12.92 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.075e-05/0.3214, allocations: 8 kB / 413.8 MB, free: 12.91 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003014/0.3217, allocations: 139.8 kB / 413.9 MB, free: 12.78 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001044/0.3228, allocations: 0.7818 MB / 414.7 MB, free: 11.93 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005802/0.3234, allocations: 190.6 kB / 414.9 MB, free: 11.74 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001357/0.3235, allocations: 60.83 kB / 414.9 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.382e-05/0.3236, allocations: 8 kB / 414.9 MB, free: 11.67 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002565/0.3238, allocations: 149 kB / 415.1 MB, free: 11.5 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 2.765e-06/0.3238, allocations: 3.984 kB / 415.1 MB, free: 11.5 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.000536/0.3244, allocations: 245.3 kB / 415.3 MB, free: 11.25 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.827e-05/0.3244, allocations: 93.09 kB / 415.4 MB, free: 11.14 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001878/0.3246, allocations: 219.1 kB / 415.6 MB, free: 10.92 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.312e-05/0.3247, allocations: 33.7 kB / 415.7 MB, free: 10.88 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.582e-05/0.3248, allocations: 136.4 kB / 415.8 MB, free: 10.74 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.219e-05/0.3248, allocations: 35.73 kB / 415.8 MB, free: 10.71 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.944e-05/0.3249, allocations: 61.64 kB / 415.9 MB, free: 10.64 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001176/0.325, allocations: 334.8 kB / 416.2 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001499/0.3252, allocations: 67.95 kB / 416.3 MB, free: 10.24 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002161/0.3254, allocations: 144.4 kB / 416.4 MB, free: 10.07 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003201/0.3257, allocations: 212.4 kB / 416.6 MB, free: 9.828 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.3257, allocations: 4 kB / 416.6 MB, free: 9.824 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004183/0.3262, allocations: 245.2 kB / 416.9 MB, free: 9.578 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.457e-05/0.3262, allocations: 4 kB / 416.9 MB, free: 9.574 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.3262, allocations: 4 kB / 416.9 MB, free: 9.57 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.554e-05/0.3262, allocations: 4.25 kB / 416.9 MB, free: 9.566 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001605/0.3264, allocations: 40.3 kB / 416.9 MB, free: 9.527 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.425e-06/0.3264, allocations: 4 kB / 416.9 MB, free: 9.523 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001607/0.3266, allocations: 39.75 kB / 417 MB, free: 9.484 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.864e-05/0.3266, allocations: 11.94 kB / 417 MB, free: 9.473 MB / 334.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.0001284/0.3267, allocations: 155.9 kB / 417.1 MB, free: 9.312 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.802e-05/0.3268, allocations: 15.91 kB / 417.2 MB, free: 9.297 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002383/0.327, allocations: 135 kB / 417.3 MB, free: 9.156 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-06/0.327, allocations: 4 kB / 417.3 MB, free: 9.152 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.327, allocations: 0 / 417.3 MB, free: 9.152 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.327, allocations: 0 / 417.3 MB, free: 9.152 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005471/0.3276, allocations: 482.2 kB / 417.8 MB, free: 8.625 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.3276, allocations: 320 / 417.8 MB, free: 8.625 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001101/0.3277, allocations: 23.92 kB / 417.8 MB, free: 8.602 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.3277, allocations: 0 / 417.8 MB, free: 8.602 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.665e-05/0.3277, allocations: 12 kB / 417.8 MB, free: 8.59 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.789e-06/0.3278, allocations: 7.938 kB / 417.8 MB, free: 8.582 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.3278, allocations: 0 / 417.8 MB, free: 8.582 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003976/0.3282, allocations: 288.1 kB / 418.1 MB, free: 8.281 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.253e-05/0.3282, allocations: 93 kB / 418.2 MB, free: 8.172 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.874e-05/0.3283, allocations: 4 kB / 418.2 MB, free: 8.168 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001631/0.3284, allocations: 23.92 kB / 418.2 MB, free: 8.145 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.311e-05/0.3285, allocations: 19.97 kB / 418.2 MB, free: 8.125 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.903e-05/0.3286, allocations: 7.984 kB / 418.2 MB, free: 8.117 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001225/0.3287, allocations: 148.7 kB / 418.4 MB, free: 7.973 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3287, allocations: 0 / 418.4 MB, free: 7.973 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002952/0.329, allocations: 43.89 kB / 418.4 MB, free: 7.93 MB / 334.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.0001681/0.3292, allocations: 111.2 kB / 418.5 MB, free: 7.812 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004004/0.3296, allocations: 178.9 kB / 418.7 MB, free: 7.641 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3296, allocations: 0 / 418.7 MB, free: 7.641 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001876/0.3298, allocations: 84 kB / 418.8 MB, free: 7.559 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003335/0.3301, allocations: 36.73 kB / 418.8 MB, free: 7.523 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006634/0.3308, allocations: 361.5 kB / 419.2 MB, free: 7.141 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003067/0.3311, allocations: 0.732 MB / 419.9 MB, free: 6.383 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.792e-05/0.3312, allocations: 41.5 kB / 420 MB, free: 6.344 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.973e-05/0.3313, allocations: 23.44 kB / 420 MB, free: 6.32 MB / 334.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3313, allocations: 0 / 420 MB, free: 6.32 MB / 334.1 MB Notification: Performance of Templates: time 0.004916/0.3362, allocations: 2.109 MB / 422.1 MB, free: 4.219 MB / 334.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches