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: "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001162/0.001162, allocations: 102.5 kB / 17.73 MB, free: 5.371 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.001281/0.001281, allocations: 191 kB / 18.66 MB, free: 4.445 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.406/1.406, allocations: 205.1 MB / 224.5 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.001457/0.001457, allocations: 59.92 kB / 328 MB, free: 3.816 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09976/0.1012, allocations: 46.61 MB / 374.6 MB, free: 5.098 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003428/0.1047, allocations: 1.813 MB / 376.4 MB, free: 3.27 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001459/0.1062, allocations: 0.6667 MB / 377.1 MB, free: 2.594 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00018/0.1064, allocations: 4 kB / 377.1 MB, free: 2.59 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001539/0.1066, allocations: 31.66 kB / 377.1 MB, free: 2.559 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000155/0.1068, allocations: 27.67 kB / 377.2 MB, free: 2.531 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003725/0.1071, allocations: 91.83 kB / 377.3 MB, free: 2.441 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002812/0.1074, allocations: 171.4 kB / 377.4 MB, free: 2.273 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001996/0.1076, allocations: 78.61 kB / 377.5 MB, free: 2.195 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001529/0.1078, allocations: 71.66 kB / 377.6 MB, free: 2.125 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000186/0.108, allocations: 87.59 kB / 377.7 MB, free: 2.039 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.476e-05/0.1081, allocations: 16 kB / 377.7 MB, free: 2.023 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.334e-05/0.1081, allocations: 20 kB / 377.7 MB, free: 2.004 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.352e-05/0.1082, allocations: 43.84 kB / 377.7 MB, free: 1.961 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001227/0.1084, allocations: 91.45 kB / 377.8 MB, free: 1.871 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003061/0.1087, allocations: 203.4 kB / 378 MB, free: 1.672 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.1087, allocations: 0 / 378 MB, free: 1.672 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1087, allocations: 4 kB / 378 MB, free: 1.668 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.113e-06/0.1087, allocations: 0 / 378 MB, free: 1.668 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.001145/0.1099, allocations: 0.4986 MB / 378.5 MB, free: 1.121 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.679e-05/0.1099, allocations: 8.031 kB / 378.5 MB, free: 1.113 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.04e-05/0.11, allocations: 54.73 kB / 378.6 MB, free: 1.051 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.172e-05/0.1101, allocations: 24.66 kB / 378.6 MB, free: 1.027 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004576/0.1106, allocations: 239.9 kB / 378.9 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.275e-05/0.1106, allocations: 20.31 kB / 378.9 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.186e-05/0.1107, allocations: 16.38 kB / 378.9 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004504/0.1111, allocations: 209.4 kB / 379.1 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.27e-05/0.1111, allocations: 3.938 kB / 379.1 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.014e-05/0.1112, allocations: 11.97 kB / 379.1 MB, free: 492 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.476e-05/0.1112, allocations: 15.86 kB / 379.1 MB, free: 476 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003502/0.1116, allocations: 139.7 kB / 379.3 MB, free: 336 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2027/0.3143, allocations: 0.7791 MB / 380 MB, free: 10.09 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006677/0.315, allocations: 190.9 kB / 380.2 MB, free: 10.06 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001498/0.3152, allocations: 64.03 kB / 380.3 MB, free: 10.05 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.957e-05/0.3152, allocations: 5.969 kB / 380.3 MB, free: 10.05 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002904/0.3155, allocations: 141.8 kB / 380.4 MB, free: 9.992 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 2.796e-06/0.3155, allocations: 0 / 380.4 MB, free: 9.992 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006217/0.3161, allocations: 247.5 kB / 380.7 MB, free: 9.961 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.82e-05/0.3162, allocations: 81.03 kB / 380.8 MB, free: 9.867 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001958/0.3164, allocations: 220.5 kB / 381 MB, free: 9.766 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.094e-05/0.3164, allocations: 33.95 kB / 381 MB, free: 9.734 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.344e-05/0.3165, allocations: 137.8 kB / 381.1 MB, free: 9.645 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.603e-05/0.3166, allocations: 37.31 kB / 381.2 MB, free: 9.629 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.113e-05/0.3166, allocations: 54.98 kB / 381.2 MB, free: 9.613 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.511e-05/0.3167, allocations: 335.9 kB / 381.6 MB, free: 9.301 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001562/0.3169, allocations: 67.72 kB / 381.6 MB, free: 9.301 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000169/0.317, allocations: 133.3 kB / 381.8 MB, free: 9.219 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003145/0.3174, allocations: 219.1 kB / 382 MB, free: 9.141 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.3174, allocations: 0.5625 kB / 382 MB, free: 9.141 MB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005033/0.3179, allocations: 254.3 kB / 382.2 MB, free: 9.102 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.944e-05/0.3179, allocations: 10.77 kB / 382.2 MB, free: 9.102 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.146e-06/0.3179, allocations: 2.75 kB / 382.2 MB, free: 9.102 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.073e-05/0.318, allocations: 3.312 kB / 382.2 MB, free: 9.102 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001818/0.3182, allocations: 36.56 kB / 382.3 MB, free: 9.102 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.369e-05/0.3182, allocations: 4.547 kB / 382.3 MB, free: 9.102 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001855/0.3184, allocations: 35.33 kB / 382.3 MB, free: 9.094 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.27e-05/0.3184, allocations: 15.84 kB / 382.3 MB, free: 9.094 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.0001333/0.3186, allocations: 153.9 kB / 382.5 MB, free: 8.977 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.959e-05/0.3186, allocations: 17 kB / 382.5 MB, free: 8.969 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002928/0.3189, allocations: 131.2 kB / 382.6 MB, free: 8.93 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.025e-06/0.3189, allocations: 2.062 kB / 382.6 MB, free: 8.93 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/0.3189, allocations: 1.219 kB / 382.6 MB, free: 8.93 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.3189, allocations: 4.141 kB / 382.6 MB, free: 8.93 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006693/0.3196, allocations: 484.8 kB / 383.1 MB, free: 8.629 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.3196, allocations: 2.047 kB / 383.1 MB, free: 8.629 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000118/0.3198, allocations: 19.11 kB / 383.1 MB, free: 8.629 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.916e-06/0.3198, allocations: 1.125 kB / 383.1 MB, free: 8.629 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.732e-05/0.3198, allocations: 5.953 kB / 383.1 MB, free: 8.629 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.3198, allocations: 3.188 kB / 383.1 MB, free: 8.629 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.3198, allocations: 0 / 383.1 MB, free: 8.629 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000378/0.3202, allocations: 295.6 kB / 383.4 MB, free: 8.473 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.667e-05/0.3202, allocations: 96.05 kB / 383.5 MB, free: 8.367 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.476e-05/0.3203, allocations: 5.609 kB / 383.5 MB, free: 8.367 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000168/0.3205, allocations: 15.88 kB / 383.5 MB, free: 8.367 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.217e-05/0.3205, allocations: 21.52 kB / 383.6 MB, free: 8.367 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.923e-05/0.3206, allocations: 6.016 kB / 383.6 MB, free: 8.367 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001188/0.3207, allocations: 152.4 kB / 383.7 MB, free: 8.285 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3207, allocations: 4 kB / 383.7 MB, free: 8.281 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003196/0.321, allocations: 43.05 kB / 383.8 MB, free: 8.277 MB / 318.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.0006707/0.3217, allocations: 0.8261 MB / 384.6 MB, free: 7.602 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004114/0.3221, allocations: 164.2 kB / 384.7 MB, free: 7.602 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.554e-06/0.3221, allocations: 1.156 kB / 384.7 MB, free: 7.602 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001885/0.3223, allocations: 80.45 kB / 384.8 MB, free: 7.602 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003775/0.3227, allocations: 45.55 kB / 384.9 MB, free: 7.59 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002694/0.3254, allocations: 2.241 MB / 387.1 MB, free: 6.148 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000194/0.3256, allocations: 0.7361 MB / 387.8 MB, free: 5.449 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000134/0.3258, allocations: 32.61 kB / 387.9 MB, free: 5.445 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001203/0.3259, allocations: 64.61 kB / 387.9 MB, free: 5.438 MB / 318.1 MB Notification: Performance of SimCode: time 6.92e-07/0.3259, allocations: 0 / 387.9 MB, free: 5.438 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02633/0.3522, allocations: 4.173 MB / 392.1 MB, free: 4.762 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.006/8.359, allocations: 13.11 kB / 392.1 MB, free: 4.75 MB / 318.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_IntegerNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_IntegerNetwork1.fmu > 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) "" Variables in the reference:time,multiSwitch1.y,triggeredAdd.y Variables in the result:booleanPulse1.period,booleanPulse1.startTime,booleanPulse1.width,booleanPulse1.y,booleanPulse2.period,booleanPulse2.startTime,booleanPulse2.width,booleanPulse2.y,integerConstant.k,integerConstant.y,integerStep.height,integerStep.offset,integerStep.startTime,integerStep.y,multiSwitch1.expr[1],multiSwitch1.expr[2],multiSwitch1.nu,multiSwitch1.u[1],multiSwitch1.u[2],multiSwitch1.use_pre_as_default,multiSwitch1.y,multiSwitch1.y_default,product.nu,product.u[1],product.u[2],product.y,realToInteger.u,realToInteger.y,showValue.number,showValue.numberPort,showValue.showNumber,showValue.use_numberPort,showValue1.number,showValue1.numberPort,showValue1.showNumber,showValue1.use_numberPort,showValue2.number,showValue2.numberPort,showValue2.showNumber,showValue2.use_numberPort,showValue3.number,showValue3.showNumber,showValue3.use_numberPort,sine.amplitude,sine.freqHz,sine.offset,sine.phase,sine.startTime,sine.y,sum.k[1],sum.k[2],sum.k[3],sum.nu,sum.u[1],sum.u[2],sum.u[3],sum.y,time,triggeredAdd.trigger,triggeredAdd.u,triggeredAdd.use_reset,triggeredAdd.use_set,triggeredAdd.y,triggeredAdd.y_start