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.00126/0.00126, allocations: 113.9 kB / 17.07 MB, free: 5.973 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.001435/0.001435, allocations: 198.8 kB / 18 MB, free: 5.059 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.46/1.46, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001008/0.001008, allocations: 51.92 kB / 351.3 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3288/0.3298, allocations: 49.43 MB / 400.7 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003402/0.3333, allocations: 1.83 MB / 402.5 MB, free: 7.043 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001393/0.3347, allocations: 0.627 MB / 403.2 MB, free: 6.414 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001082/0.3348, allocations: 4 kB / 403.2 MB, free: 6.41 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001537/0.335, allocations: 27.67 kB / 403.2 MB, free: 6.383 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000141/0.3352, allocations: 31.72 kB / 403.2 MB, free: 6.352 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003136/0.3355, allocations: 91.78 kB / 403.3 MB, free: 6.262 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00028/0.3358, allocations: 175.4 kB / 403.5 MB, free: 6.09 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002287/0.336, allocations: 74.62 kB / 403.6 MB, free: 6.008 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000137/0.3362, allocations: 67.72 kB / 403.6 MB, free: 5.941 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001823/0.3364, allocations: 95.53 kB / 403.7 MB, free: 5.848 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.717e-05/0.3364, allocations: 12 kB / 403.7 MB, free: 5.836 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.187e-05/0.3365, allocations: 23.98 kB / 403.8 MB, free: 5.812 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.425e-05/0.3366, allocations: 43.84 kB / 403.8 MB, free: 5.77 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001137/0.3367, allocations: 79.53 kB / 403.9 MB, free: 5.691 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003565/0.3371, allocations: 204.7 kB / 404.1 MB, free: 5.492 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.3371, allocations: 0 / 404.1 MB, free: 5.492 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.444e-06/0.3371, allocations: 0 / 404.1 MB, free: 5.492 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.089e-05/0.3371, allocations: 4 kB / 404.1 MB, free: 5.488 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.001355/0.3385, allocations: 0.4944 MB / 404.6 MB, free: 4.949 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.665e-05/0.3386, allocations: 12.03 kB / 404.6 MB, free: 4.938 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.425e-05/0.3387, allocations: 24.66 kB / 404.6 MB, free: 4.914 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004039/0.3391, allocations: 244.3 kB / 404.9 MB, free: 4.637 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.972e-05/0.3391, allocations: 24.36 kB / 404.9 MB, free: 4.613 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.282e-05/0.3392, allocations: 23.88 kB / 404.9 MB, free: 4.59 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005091/0.3397, allocations: 214.2 kB / 405.1 MB, free: 4.359 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.425e-05/0.3397, allocations: 0 / 405.1 MB, free: 4.359 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.468e-05/0.3397, allocations: 4 kB / 405.1 MB, free: 4.355 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.087e-05/0.3398, allocations: 8 kB / 405.1 MB, free: 4.348 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003678/0.3401, allocations: 143.7 kB / 405.3 MB, free: 4.207 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001371/0.3415, allocations: 0.7854 MB / 406 MB, free: 3.359 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006517/0.3422, allocations: 182.7 kB / 406.2 MB, free: 3.172 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001584/0.3424, allocations: 64.81 kB / 406.3 MB, free: 3.105 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.936e-05/0.3424, allocations: 8 kB / 406.3 MB, free: 3.098 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002574/0.3427, allocations: 144.9 kB / 406.4 MB, free: 2.938 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.593e-06/0.3427, allocations: 4 kB / 406.4 MB, free: 2.934 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006055/0.3433, allocations: 233.3 kB / 406.7 MB, free: 2.699 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.684e-05/0.3434, allocations: 101 kB / 406.8 MB, free: 2.582 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002057/0.3436, allocations: 214.8 kB / 407 MB, free: 2.359 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.64e-05/0.3436, allocations: 29.7 kB / 407 MB, free: 2.324 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001209/0.3437, allocations: 152.1 kB / 407.2 MB, free: 2.172 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.416e-05/0.3438, allocations: 23.7 kB / 407.2 MB, free: 2.148 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001018/0.3439, allocations: 61.61 kB / 407.2 MB, free: 2.082 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001658/0.3441, allocations: 330.8 kB / 407.6 MB, free: 1.75 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001699/0.3442, allocations: 71.95 kB / 407.6 MB, free: 1.68 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002191/0.3445, allocations: 128.5 kB / 407.8 MB, free: 1.523 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003853/0.3449, allocations: 212.3 kB / 408 MB, free: 1.285 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.3449, allocations: 0 / 408 MB, free: 1.285 MB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000521/0.3454, allocations: 249.4 kB / 408.2 MB, free: 1.035 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.768e-05/0.3454, allocations: 10.5 kB / 408.2 MB, free: 1.027 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.102e-05/0.3455, allocations: 8 kB / 408.2 MB, free: 1.02 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.569e-05/0.3455, allocations: 0 / 408.2 MB, free: 1.02 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002049/0.3457, allocations: 48.16 kB / 408.3 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.77e-05/0.3457, allocations: 7.938 kB / 408.3 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002218/0.346, allocations: 36.12 kB / 408.3 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.985e-05/0.346, allocations: 8 kB / 408.3 MB, free: 0.9219 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.0001726/0.3462, allocations: 152 kB / 408.5 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.398e-05/0.3462, allocations: 19.72 kB / 408.5 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000279/0.3465, allocations: 142.9 kB / 408.6 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.536e-06/0.3465, allocations: 0 / 408.6 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/0.3465, allocations: 3.938 kB / 408.6 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.562e-06/0.3465, allocations: 7.984 kB / 408.6 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006371/0.3472, allocations: 470.3 kB / 409.1 MB, free: 72 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.3472, allocations: 4 kB / 409.1 MB, free: 68 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001212/0.3473, allocations: 15.98 kB / 409.1 MB, free: 52 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.792e-06/0.3473, allocations: 7.922 kB / 409.1 MB, free: 44 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.702e-05/0.3474, allocations: 8 kB / 409.1 MB, free: 36 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.3474, allocations: 3.938 kB / 409.1 MB, free: 32 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.3474, allocations: 0 / 409.1 MB, free: 32 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004435/0.3478, allocations: 284 kB / 409.4 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001173/0.348, allocations: 100.8 kB / 409.5 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.475e-05/0.348, allocations: 7.984 kB / 409.5 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001731/0.3482, allocations: 15.98 kB / 409.5 MB, free: 15.59 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.244e-05/0.3483, allocations: 27.97 kB / 409.6 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.896e-05/0.3483, allocations: 4 kB / 409.6 MB, free: 15.56 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001277/0.3484, allocations: 148.6 kB / 409.7 MB, free: 15.42 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3484, allocations: 0 / 409.7 MB, free: 15.42 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003256/0.3488, allocations: 39.91 kB / 409.8 MB, free: 15.38 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.0001661/0.3489, allocations: 115.1 kB / 409.9 MB, free: 15.26 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004048/0.3494, allocations: 163.8 kB / 410 MB, free: 15.1 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3494, allocations: 0 / 410 MB, free: 15.1 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001825/0.3496, allocations: 80.02 kB / 410.1 MB, free: 15.02 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000356/0.3499, allocations: 32.92 kB / 410.1 MB, free: 14.99 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007404/0.3507, allocations: 377.5 kB / 410.5 MB, free: 14.59 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003161/0.351, allocations: 0.7319 MB / 411.2 MB, free: 13.84 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001179/0.3511, allocations: 33.53 kB / 411.3 MB, free: 13.8 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.224e-05/0.3512, allocations: 23.42 kB / 411.3 MB, free: 13.78 MB / 334.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3512, allocations: 0 / 411.3 MB, free: 13.78 MB / 334.1 MB Notification: Performance of Templates: time 0.005429/0.3566, allocations: 2.103 MB / 413.4 MB, free: 11.68 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/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_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches