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.0008332/0.0008333, allocations: 93.88 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009954/0.0009954, allocations: 202.9 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.217/1.217, allocations: 227.7 MB / 246.8 MB, free: 9.535 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002058/0.0002059, allocations: 4 kB / 307.8 MB, free: 488 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08715/0.08737, allocations: 51.52 MB / 359.4 MB, free: 12.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.001987/0.0894, allocations: 1.548 MB / 360.9 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001192/0.09062, allocations: 0.6662 MB / 361.6 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001379/0.09078, allocations: 4 kB / 361.6 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001153/0.09091, allocations: 31.72 kB / 361.6 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001284/0.09104, allocations: 11.88 kB / 361.6 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002895/0.09134, allocations: 83.8 kB / 361.7 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002165/0.09157, allocations: 175.4 kB / 361.9 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001617/0.09174, allocations: 66.64 kB / 361.9 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001727/0.09192, allocations: 67.64 kB / 362 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001394/0.09207, allocations: 67.61 kB / 362.1 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.367e-05/0.0921, allocations: 8 kB / 362.1 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.192e-05/0.09218, allocations: 23.98 kB / 362.1 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.111e-05/0.09225, allocations: 31.84 kB / 362.1 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.245e-05/0.09235, allocations: 97.19 kB / 362.2 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001913/0.09254, allocations: 171.6 kB / 362.4 MB, free: 9.891 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.034e-06/0.09255, allocations: 0 / 362.4 MB, free: 9.891 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.09256, allocations: 4 kB / 362.4 MB, free: 9.887 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.821e-06/0.09257, allocations: 0 / 362.4 MB, free: 9.887 MB / 302.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.0007945/0.09337, allocations: 494.6 kB / 362.9 MB, free: 9.355 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.741e-05/0.09342, allocations: 16.03 kB / 362.9 MB, free: 9.34 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.358e-05/0.09348, allocations: 46.73 kB / 362.9 MB, free: 9.285 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001478/0.09363, allocations: 36.64 kB / 363 MB, free: 9.25 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002528/0.09389, allocations: 241.5 kB / 363.2 MB, free: 8.973 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.844e-05/0.09392, allocations: 16.12 kB / 363.2 MB, free: 8.957 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.169e-05/0.09396, allocations: 20.36 kB / 363.2 MB, free: 8.938 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003645/0.09433, allocations: 213.7 kB / 363.5 MB, free: 8.711 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.776e-06/0.09435, allocations: 0 / 363.5 MB, free: 8.711 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.783e-05/0.09437, allocations: 4 kB / 363.5 MB, free: 8.707 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.192e-05/0.0944, allocations: 15.8 kB / 363.5 MB, free: 8.691 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003223/0.09472, allocations: 143.9 kB / 363.6 MB, free: 8.551 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001025/0.09576, allocations: 0.7933 MB / 364.4 MB, free: 7.695 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000603/0.09637, allocations: 214.6 kB / 364.6 MB, free: 7.477 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001452/0.09653, allocations: 68.81 kB / 364.7 MB, free: 7.406 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.393e-05/0.09657, allocations: 7.984 kB / 364.7 MB, free: 7.398 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002667/0.09685, allocations: 147.3 kB / 364.8 MB, free: 7.238 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.473e-06/0.09686, allocations: 0 / 364.8 MB, free: 7.238 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005623/0.09743, allocations: 257.5 kB / 365.1 MB, free: 6.98 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.809e-05/0.09748, allocations: 89.09 kB / 365.2 MB, free: 6.875 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001904/0.09768, allocations: 230.9 kB / 365.4 MB, free: 6.637 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.294e-05/0.09771, allocations: 29.8 kB / 365.4 MB, free: 6.602 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.767e-05/0.09781, allocations: 140.3 kB / 365.6 MB, free: 6.461 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.522e-05/0.09785, allocations: 39.55 kB / 365.6 MB, free: 6.422 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.656e-05/0.0979, allocations: 33.7 kB / 365.6 MB, free: 6.383 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001207/0.09802, allocations: 334.8 kB / 366 MB, free: 6.047 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001552/0.09819, allocations: 75.95 kB / 366 MB, free: 5.973 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000188/0.09838, allocations: 137.6 kB / 366.2 MB, free: 5.809 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003348/0.09873, allocations: 220.3 kB / 366.4 MB, free: 5.562 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.09874, allocations: 4 kB / 366.4 MB, free: 5.559 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004403/0.09918, allocations: 257.1 kB / 366.6 MB, free: 5.301 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/0.09921, allocations: 4 kB / 366.6 MB, free: 5.297 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.563e-06/0.09922, allocations: 4 kB / 366.6 MB, free: 5.293 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.421e-05/0.09924, allocations: 4 kB / 366.7 MB, free: 5.289 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001594/0.0994, allocations: 39.91 kB / 366.7 MB, free: 5.25 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.574e-06/0.09942, allocations: 4.25 kB / 366.7 MB, free: 5.246 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001763/0.0996, allocations: 44.08 kB / 366.7 MB, free: 5.203 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.092e-05/0.09963, allocations: 15.98 kB / 366.8 MB, free: 5.188 MB / 302.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.0001201/0.09975, allocations: 144.6 kB / 366.9 MB, free: 5.039 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.717e-05/0.09979, allocations: 15.81 kB / 366.9 MB, free: 5.023 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002376/0.1, allocations: 139 kB / 367 MB, free: 4.879 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.1, allocations: 0 / 367 MB, free: 4.879 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/0.1001, allocations: 11.92 kB / 367.1 MB, free: 4.867 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.1001, allocations: 3.938 kB / 367.1 MB, free: 4.863 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005512/0.1006, allocations: 486.2 kB / 367.5 MB, free: 4.332 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.1006, allocations: 0 / 367.5 MB, free: 4.332 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001206/0.1008, allocations: 27.98 kB / 367.6 MB, free: 4.305 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.1008, allocations: 0 / 367.6 MB, free: 4.305 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.71e-05/0.1008, allocations: 11.92 kB / 367.6 MB, free: 4.293 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.1008, allocations: 0 / 367.6 MB, free: 4.293 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.1008, allocations: 0 / 367.6 MB, free: 4.293 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004042/0.1012, allocations: 300.1 kB / 367.9 MB, free: 3.98 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.735e-05/0.1013, allocations: 92.83 kB / 368 MB, free: 3.871 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.923e-05/0.1013, allocations: 11.94 kB / 368 MB, free: 3.859 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001681/0.1015, allocations: 23.97 kB / 368 MB, free: 3.836 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.56e-05/0.1016, allocations: 19.97 kB / 368 MB, free: 3.816 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.575e-05/0.1016, allocations: 8 kB / 368 MB, free: 3.809 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001106/0.1017, allocations: 148.7 kB / 368.2 MB, free: 3.664 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1017, allocations: 0 / 368.2 MB, free: 3.664 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002822/0.102, allocations: 39.94 kB / 368.2 MB, free: 3.625 MB / 302.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.0006916/0.1027, allocations: 0.8406 MB / 369 MB, free: 2.758 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003693/0.1031, allocations: 180.3 kB / 369.2 MB, free: 2.582 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.1031, allocations: 0 / 369.2 MB, free: 2.582 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001713/0.1033, allocations: 83.89 kB / 369.3 MB, free: 2.5 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003307/0.1036, allocations: 27.97 kB / 369.3 MB, free: 2.473 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002525/0.1061, allocations: 2.314 MB / 371.6 MB, free: 16 kB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1387/0.2448, allocations: 0.7307 MB / 372.4 MB, free: 19.14 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001776/0.245, allocations: 36.78 kB / 372.4 MB, free: 19.14 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001508/0.2452, allocations: 67.02 kB / 372.5 MB, free: 19.13 MB / 302.1 MB Notification: Performance of SimCode: time 9.11e-07/0.2452, allocations: 0 / 372.5 MB, free: 19.13 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01474/0.2599, allocations: 3.643 MB / 376.1 MB, free: 18.9 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001342/0.2601, allocations: 190.1 kB / 376.3 MB, free: 18.64 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.705/1.966, allocations: 0 / 376.3 MB, free: 18.64 MB / 302.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) Reference file matches