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: "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001238/0.001237, allocations: 116.8 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001263/0.001263, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.352/1.352, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001228/0.001229, allocations: 63.89 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3024/0.3036, allocations: 50.55 MB / 408.8 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.004368/0.3081, allocations: 1.839 MB / 410.6 MB, free: 15.71 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00151/0.3096, allocations: 0.6894 MB / 411.3 MB, free: 15.02 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002319/0.3099, allocations: 3.938 kB / 411.3 MB, free: 15.01 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001969/0.3101, allocations: 35.67 kB / 411.3 MB, free: 14.98 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002184/0.3103, allocations: 23.73 kB / 411.3 MB, free: 14.95 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005011/0.3108, allocations: 99.7 kB / 411.4 MB, free: 14.86 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003465/0.3112, allocations: 171.5 kB / 411.6 MB, free: 14.69 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002672/0.3115, allocations: 78.62 kB / 411.7 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002884/0.3118, allocations: 79.64 kB / 411.8 MB, free: 14.53 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002479/0.312, allocations: 87.59 kB / 411.8 MB, free: 14.44 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.207e-05/0.3121, allocations: 16 kB / 411.9 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001257/0.3122, allocations: 31.92 kB / 411.9 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.449e-05/0.3123, allocations: 47.84 kB / 411.9 MB, free: 14.35 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001204/0.3125, allocations: 91.41 kB / 412 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004107/0.3129, allocations: 204.9 kB / 412.2 MB, free: 14.05 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.3129, allocations: 0 / 412.2 MB, free: 14.05 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.3129, allocations: 0 / 412.2 MB, free: 14.05 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.238e-06/0.3129, allocations: 0 / 412.2 MB, free: 14.05 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.001132/0.3141, allocations: 0.5025 MB / 412.7 MB, free: 13.5 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.832e-05/0.3141, allocations: 8.031 kB / 412.7 MB, free: 13.5 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.835e-05/0.3142, allocations: 50.73 kB / 412.8 MB, free: 13.44 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002241/0.3144, allocations: 40.64 kB / 412.8 MB, free: 13.4 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003525/0.3148, allocations: 245.5 kB / 413.1 MB, free: 13.12 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.486e-05/0.3148, allocations: 16.38 kB / 413.1 MB, free: 13.1 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.731e-05/0.3149, allocations: 12.38 kB / 413.1 MB, free: 13.09 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000403/0.3153, allocations: 217.4 kB / 413.3 MB, free: 12.86 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.044e-05/0.3153, allocations: 0 / 413.3 MB, free: 12.86 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.258e-05/0.3153, allocations: 8 kB / 413.3 MB, free: 12.85 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.379e-05/0.3154, allocations: 7.938 kB / 413.3 MB, free: 12.84 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000317/0.3157, allocations: 143.8 kB / 413.5 MB, free: 12.7 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001094/0.3168, allocations: 0.7778 MB / 414.2 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006054/0.3174, allocations: 190.6 kB / 414.4 MB, free: 11.67 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001377/0.3176, allocations: 56.83 kB / 414.5 MB, free: 11.61 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.256e-05/0.3176, allocations: 11.97 kB / 414.5 MB, free: 11.6 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002774/0.3179, allocations: 152.9 kB / 414.6 MB, free: 11.43 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.703e-06/0.3179, allocations: 0 / 414.6 MB, free: 11.43 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0007508/0.3187, allocations: 241.3 kB / 414.9 MB, free: 11.19 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.456e-05/0.3187, allocations: 85.11 kB / 415 MB, free: 11.09 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000231/0.319, allocations: 222.9 kB / 415.2 MB, free: 10.86 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.342e-05/0.319, allocations: 29.7 kB / 415.2 MB, free: 10.82 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.875e-05/0.3191, allocations: 148.3 kB / 415.4 MB, free: 10.67 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.597e-05/0.3192, allocations: 27.56 kB / 415.4 MB, free: 10.64 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.222e-05/0.3193, allocations: 61.69 kB / 415.4 MB, free: 10.58 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001245/0.3194, allocations: 334.8 kB / 415.8 MB, free: 10.24 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001592/0.3196, allocations: 68.33 kB / 415.8 MB, free: 10.18 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001885/0.3198, allocations: 136.4 kB / 416 MB, free: 10.01 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003288/0.3201, allocations: 216.4 kB / 416.2 MB, free: 9.77 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.3201, allocations: 3.938 kB / 416.2 MB, free: 9.766 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004381/0.3206, allocations: 253.1 kB / 416.4 MB, free: 9.512 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.017e-05/0.3206, allocations: 8 kB / 416.4 MB, free: 9.504 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.815e-06/0.3206, allocations: 0 / 416.4 MB, free: 9.504 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.582e-05/0.3206, allocations: 7.938 kB / 416.4 MB, free: 9.496 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000176/0.3208, allocations: 35.97 kB / 416.5 MB, free: 9.461 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.232e-05/0.3208, allocations: 7.938 kB / 416.5 MB, free: 9.453 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001696/0.321, allocations: 31.77 kB / 416.5 MB, free: 9.422 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.46e-05/0.321, allocations: 8.25 kB / 416.5 MB, free: 9.414 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.0001359/0.3212, allocations: 156 kB / 416.7 MB, free: 9.254 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.669e-05/0.3212, allocations: 19.81 kB / 416.7 MB, free: 9.234 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002518/0.3215, allocations: 131 kB / 416.8 MB, free: 9.098 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.957e-06/0.3215, allocations: 320 / 416.8 MB, free: 9.098 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.3215, allocations: 0 / 416.8 MB, free: 9.098 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.616e-06/0.3215, allocations: 11.92 kB / 416.8 MB, free: 9.086 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006116/0.3221, allocations: 486.2 kB / 417.3 MB, free: 8.555 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.3221, allocations: 0 / 417.3 MB, free: 8.555 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001129/0.3223, allocations: 15.98 kB / 417.3 MB, free: 8.539 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.406e-06/0.3223, allocations: 0 / 417.3 MB, free: 8.539 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.885e-05/0.3223, allocations: 15.92 kB / 417.3 MB, free: 8.523 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.3223, allocations: 0 / 417.3 MB, free: 8.523 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.3223, allocations: 0 / 417.3 MB, free: 8.523 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004282/0.3227, allocations: 292 kB / 417.6 MB, free: 8.219 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.658e-05/0.3228, allocations: 92.86 kB / 417.7 MB, free: 8.109 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.478e-05/0.3229, allocations: 3.938 kB / 417.7 MB, free: 8.105 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001689/0.323, allocations: 23.97 kB / 417.7 MB, free: 8.082 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.936e-05/0.3231, allocations: 19.97 kB / 417.8 MB, free: 8.062 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.844e-05/0.3232, allocations: 4 kB / 417.8 MB, free: 8.059 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001255/0.3233, allocations: 148.9 kB / 417.9 MB, free: 7.914 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.084e-06/0.3233, allocations: 0 / 417.9 MB, free: 7.914 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003175/0.3236, allocations: 47.78 kB / 418 MB, free: 7.867 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.0007678/0.3244, allocations: 0.8379 MB / 418.8 MB, free: 7 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004337/0.3248, allocations: 175.2 kB / 419 MB, free: 6.832 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.3249, allocations: 0 / 419 MB, free: 6.832 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001704/0.325, allocations: 75.89 kB / 419 MB, free: 6.758 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003651/0.3254, allocations: 39.53 kB / 419.1 MB, free: 6.723 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00286/0.3283, allocations: 2.241 MB / 421.3 MB, free: 4.332 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003657/0.3287, allocations: 0.732 MB / 422.1 MB, free: 3.574 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001174/0.3288, allocations: 33.52 kB / 422.1 MB, free: 3.535 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001191/0.3289, allocations: 67.41 kB / 422.2 MB, free: 3.469 MB / 334.1 MB Notification: Performance of SimCode: time 6.02e-07/0.3289, allocations: 0 / 422.2 MB, free: 3.469 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02239/0.3513, allocations: 4.195 MB / 426.4 MB, free: 15.34 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.863/8.214, allocations: 8 kB / 426.4 MB, free: 15.34 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_IntegerNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_IntegerNetwork1.fmu > Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_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.continuous,sine.f,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