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.001409/0.001409, allocations: 118.8 kB / 17.78 MB, free: 5.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001577/0.001577, allocations: 201.2 kB / 18.73 MB, free: 4.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.394/1.394, allocations: 227.4 MB / 246.9 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001287, allocations: 59.91 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2958/0.2971, allocations: 50.55 MB / 408.7 MB, free: 1.512 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.004349/0.3015, allocations: 1.839 MB / 410.6 MB, free: 15.67 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00198/0.3035, allocations: 0.6933 MB / 411.3 MB, free: 14.97 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002163/0.3038, allocations: 4 kB / 411.3 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002032/0.304, allocations: 27.67 kB / 411.3 MB, free: 14.94 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002332/0.3043, allocations: 31.66 kB / 411.3 MB, free: 14.91 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005221/0.3048, allocations: 99.77 kB / 411.4 MB, free: 14.81 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003657/0.3052, allocations: 171.5 kB / 411.6 MB, free: 14.64 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002529/0.3055, allocations: 74.61 kB / 411.7 MB, free: 14.56 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002807/0.3058, allocations: 91.62 kB / 411.8 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002203/0.306, allocations: 83.56 kB / 411.9 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.284e-05/0.3061, allocations: 12 kB / 411.9 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001151/0.3062, allocations: 27.98 kB / 411.9 MB, free: 14.35 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.45e-05/0.3063, allocations: 51.83 kB / 411.9 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001159/0.3064, allocations: 83.47 kB / 412 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003977/0.3068, allocations: 200.9 kB / 412.2 MB, free: 14.02 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.3068, allocations: 0 / 412.2 MB, free: 14.02 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.797e-06/0.3068, allocations: 3.984 kB / 412.2 MB, free: 14.02 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.195e-06/0.3069, allocations: 4 kB / 412.2 MB, free: 14.01 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.001414/0.3083, allocations: 0.5025 MB / 412.7 MB, free: 13.46 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.756e-05/0.3083, allocations: 8.031 kB / 412.7 MB, free: 13.45 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.926e-05/0.3084, allocations: 50.73 kB / 412.8 MB, free: 13.39 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002218/0.3087, allocations: 36.64 kB / 412.8 MB, free: 13.36 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004101/0.3091, allocations: 253.5 kB / 413.1 MB, free: 13.07 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.427e-05/0.3091, allocations: 12.38 kB / 413.1 MB, free: 13.06 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.275e-05/0.3092, allocations: 20.38 kB / 413.1 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005279/0.3097, allocations: 205.4 kB / 413.3 MB, free: 12.82 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.651e-05/0.3097, allocations: 4 kB / 413.3 MB, free: 12.82 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.653e-05/0.3098, allocations: 8 kB / 413.3 MB, free: 12.81 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.503e-05/0.3098, allocations: 15.98 kB / 413.3 MB, free: 12.79 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004609/0.3103, allocations: 139.8 kB / 413.5 MB, free: 12.66 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00124/0.3115, allocations: 0.7778 MB / 414.2 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006458/0.3122, allocations: 190.6 kB / 414.4 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001693/0.3124, allocations: 64.81 kB / 414.5 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.751e-05/0.3124, allocations: 4 kB / 414.5 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000289/0.3127, allocations: 152.9 kB / 414.6 MB, free: 11.38 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 2.325e-06/0.3127, allocations: 0 / 414.6 MB, free: 11.38 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006205/0.3134, allocations: 241.3 kB / 414.9 MB, free: 11.14 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.444e-05/0.3135, allocations: 81.11 kB / 415 MB, free: 11.04 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002135/0.3137, allocations: 226.9 kB / 415.2 MB, free: 10.81 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.357e-05/0.3137, allocations: 29.7 kB / 415.2 MB, free: 10.77 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.868e-05/0.3138, allocations: 148.2 kB / 415.4 MB, free: 10.62 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.598e-05/0.3139, allocations: 31.56 kB / 415.4 MB, free: 10.59 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001085/0.314, allocations: 57.69 kB / 415.4 MB, free: 10.53 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001251/0.3141, allocations: 342.7 kB / 415.8 MB, free: 10.19 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001663/0.3143, allocations: 67.95 kB / 415.8 MB, free: 10.12 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002117/0.3145, allocations: 132.5 kB / 416 MB, free: 9.961 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003775/0.3149, allocations: 212.4 kB / 416.2 MB, free: 9.723 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.3149, allocations: 0 / 416.2 MB, free: 9.723 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005204/0.3154, allocations: 257 kB / 416.4 MB, free: 9.465 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.258e-05/0.3155, allocations: 4 kB / 416.4 MB, free: 9.461 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.083e-05/0.3155, allocations: 8.25 kB / 416.4 MB, free: 9.453 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.216e-05/0.3155, allocations: 4 kB / 416.4 MB, free: 9.449 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002176/0.3157, allocations: 40.34 kB / 416.5 MB, free: 9.41 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.033e-05/0.3158, allocations: 3.938 kB / 416.5 MB, free: 9.406 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002004/0.316, allocations: 35.77 kB / 416.5 MB, free: 9.371 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.085e-05/0.316, allocations: 11.98 kB / 416.5 MB, free: 9.359 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.0001607/0.3162, allocations: 151.9 kB / 416.7 MB, free: 9.203 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.263e-05/0.3162, allocations: 19.8 kB / 416.7 MB, free: 9.184 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003052/0.3165, allocations: 135 kB / 416.8 MB, free: 9.043 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.428e-06/0.3165, allocations: 0 / 416.8 MB, free: 9.043 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.3166, allocations: 4 kB / 416.8 MB, free: 9.039 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.802e-06/0.3166, allocations: 3.938 kB / 416.8 MB, free: 9.035 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006892/0.3173, allocations: 478.5 kB / 417.3 MB, free: 8.512 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.44e-06/0.3173, allocations: 4 kB / 417.3 MB, free: 8.508 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001285/0.3174, allocations: 19.98 kB / 417.3 MB, free: 8.488 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.721e-06/0.3174, allocations: 4 kB / 417.3 MB, free: 8.484 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.755e-05/0.3175, allocations: 7.922 kB / 417.3 MB, free: 8.477 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.756e-06/0.3175, allocations: 0 / 417.3 MB, free: 8.477 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.3175, allocations: 4 kB / 417.4 MB, free: 8.473 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000423/0.3179, allocations: 284 kB / 417.6 MB, free: 8.176 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.305e-05/0.318, allocations: 100.9 kB / 417.7 MB, free: 8.059 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.246e-05/0.318, allocations: 7.938 kB / 417.7 MB, free: 8.051 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001854/0.3182, allocations: 19.97 kB / 417.8 MB, free: 8.031 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.923e-05/0.3183, allocations: 19.97 kB / 417.8 MB, free: 8.012 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.251e-05/0.3183, allocations: 4 kB / 417.8 MB, free: 8.008 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001259/0.3185, allocations: 144.7 kB / 417.9 MB, free: 7.867 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3185, allocations: 0 / 417.9 MB, free: 7.867 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003407/0.3188, allocations: 43.89 kB / 418 MB, free: 7.824 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.0008902/0.3197, allocations: 0.841 MB / 418.8 MB, free: 6.957 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004761/0.3202, allocations: 176 kB / 419 MB, free: 6.785 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.696e-06/0.3202, allocations: 3.938 kB / 419 MB, free: 6.781 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002172/0.3204, allocations: 75.89 kB / 419.1 MB, free: 6.707 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003824/0.3208, allocations: 36.17 kB / 419.1 MB, free: 6.672 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003288/0.3241, allocations: 2.238 MB / 421.3 MB, free: 4.285 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003683/0.3245, allocations: 0.732 MB / 422.1 MB, free: 3.527 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.00012/0.3247, allocations: 33.53 kB / 422.1 MB, free: 3.488 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001181/0.3248, allocations: 67.41 kB / 422.2 MB, free: 3.422 MB / 334.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3248, allocations: 0 / 422.2 MB, free: 3.422 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02197/0.3468, allocations: 4.192 MB / 426.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.889/8.235, allocations: 8.047 kB / 426.4 MB, free: 15.29 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