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.001428/0.001428, allocations: 101.6 kB / 17.72 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.00174/0.001741, allocations: 192 kB / 18.66 MB, free: 4.441 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.428/1.428, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001211/0.001211, allocations: 51.92 kB / 328 MB, free: 3.828 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08202/0.08324, allocations: 46.61 MB / 374.6 MB, free: 5.105 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003054/0.08635, allocations: 1.817 MB / 376.4 MB, free: 3.273 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001221/0.08759, allocations: 0.6668 MB / 377.1 MB, free: 2.598 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001272/0.08774, allocations: 0 / 377.1 MB, free: 2.598 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001484/0.0879, allocations: 35.66 kB / 377.1 MB, free: 2.562 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001545/0.08809, allocations: 35.66 kB / 377.2 MB, free: 2.527 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003088/0.08841, allocations: 79.84 kB / 377.3 MB, free: 2.449 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002497/0.08867, allocations: 175.4 kB / 377.4 MB, free: 2.277 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001748/0.08885, allocations: 78.62 kB / 377.5 MB, free: 2.199 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001341/0.08899, allocations: 75.64 kB / 377.6 MB, free: 2.125 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001516/0.08916, allocations: 83.61 kB / 377.7 MB, free: 2.043 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.255e-05/0.0892, allocations: 12 kB / 377.7 MB, free: 2.031 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.281e-05/0.08928, allocations: 27.98 kB / 377.7 MB, free: 2.004 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.462e-05/0.08935, allocations: 43.83 kB / 377.7 MB, free: 1.961 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.483e-05/0.08945, allocations: 91.47 kB / 377.8 MB, free: 1.871 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002466/0.0897, allocations: 203.4 kB / 378 MB, free: 1.672 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.08972, allocations: 4 kB / 378 MB, free: 1.668 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.08972, allocations: 0 / 378 MB, free: 1.668 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.087e-05/0.08974, 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.0008768/0.09062, allocations: 0.5025 MB / 378.5 MB, free: 1.117 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.844e-05/0.09067, allocations: 8.031 kB / 378.5 MB, free: 1.109 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.749e-05/0.09072, allocations: 46.73 kB / 378.6 MB, free: 1.055 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.284e-05/0.09078, allocations: 24.66 kB / 378.6 MB, free: 1.031 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000287/0.09107, allocations: 239.9 kB / 378.9 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.305e-05/0.09111, allocations: 20.36 kB / 378.9 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.746e-05/0.09114, allocations: 20.31 kB / 378.9 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003658/0.09151, allocations: 213.4 kB / 379.1 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.929e-06/0.09153, allocations: 0 / 379.1 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.873e-05/0.09156, allocations: 12 kB / 379.1 MB, free: 492 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.171e-05/0.09159, allocations: 7.859 kB / 379.1 MB, free: 484 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003117/0.09191, allocations: 143.7 kB / 379.3 MB, free: 340 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1551/0.247, allocations: 0.7802 MB / 380 MB, free: 12.44 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006542/0.2477, allocations: 186.1 kB / 380.2 MB, free: 12.41 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001457/0.2479, allocations: 64.83 kB / 380.3 MB, free: 12.41 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.117e-05/0.2479, allocations: 2.312 kB / 380.3 MB, free: 12.41 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000276/0.2482, allocations: 145.8 kB / 380.4 MB, free: 12.34 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.813e-06/0.2482, allocations: 3.469 kB / 380.4 MB, free: 12.34 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.000595/0.2488, allocations: 246.4 kB / 380.7 MB, free: 12.31 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.563e-05/0.2489, allocations: 85.66 kB / 380.8 MB, free: 12.22 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001984/0.2491, allocations: 217.8 kB / 381 MB, free: 12.12 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.019e-05/0.2491, allocations: 30.45 kB / 381 MB, free: 12.09 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.582e-05/0.2492, allocations: 145.5 kB / 381.1 MB, free: 12 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.385e-05/0.2493, allocations: 29.52 kB / 381.2 MB, free: 11.98 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.635e-05/0.2493, allocations: 61.8 kB / 381.2 MB, free: 11.96 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.828e-05/0.2494, allocations: 328.1 kB / 381.6 MB, free: 11.65 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001576/0.2496, allocations: 66.66 kB / 381.6 MB, free: 11.65 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001734/0.2498, allocations: 141.1 kB / 381.8 MB, free: 11.57 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003264/0.2501, allocations: 218.5 kB / 382 MB, free: 11.49 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.2501, allocations: 5.75 kB / 382 MB, free: 11.49 MB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000481/0.2506, allocations: 243.6 kB / 382.2 MB, free: 11.44 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.002e-05/0.2506, allocations: 6.938 kB / 382.2 MB, free: 11.44 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.177e-06/0.2506, allocations: 2.219 kB / 382.2 MB, free: 11.44 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.226e-05/0.2507, allocations: 3.844 kB / 382.2 MB, free: 11.44 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001728/0.2508, allocations: 40.56 kB / 382.3 MB, free: 11.44 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.197e-05/0.2509, allocations: 11.06 kB / 382.3 MB, free: 11.43 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002013/0.2511, allocations: 34.88 kB / 382.3 MB, free: 11.43 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.521e-05/0.2511, allocations: 10.06 kB / 382.3 MB, free: 11.43 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.0001166/0.2512, allocations: 146.5 kB / 382.5 MB, free: 11.32 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.195e-05/0.2513, allocations: 25.89 kB / 382.5 MB, free: 11.3 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00027/0.2515, allocations: 134.3 kB / 382.6 MB, free: 11.26 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.2516, allocations: 2.062 kB / 382.6 MB, free: 11.26 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.2516, allocations: 4.344 kB / 382.6 MB, free: 11.26 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.68e-06/0.2516, allocations: 2.031 kB / 382.6 MB, free: 11.26 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006346/0.2522, allocations: 485.9 kB / 383.1 MB, free: 10.95 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.2522, allocations: 1.391 kB / 383.1 MB, free: 10.95 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001228/0.2524, allocations: 18.11 kB / 383.1 MB, free: 10.95 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.647e-06/0.2524, allocations: 5 kB / 383.1 MB, free: 10.95 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.575e-05/0.2524, allocations: 4.359 kB / 383.1 MB, free: 10.95 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.965e-06/0.2524, allocations: 5.594 kB / 383.1 MB, free: 10.95 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.2524, allocations: 0.6562 kB / 383.1 MB, free: 10.95 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003814/0.2528, allocations: 290.8 kB / 383.4 MB, free: 10.78 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.863e-05/0.2529, allocations: 90.28 kB / 383.5 MB, free: 10.68 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.004e-05/0.2529, allocations: 8.078 kB / 383.5 MB, free: 10.68 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001707/0.2531, allocations: 19.06 kB / 383.5 MB, free: 10.67 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.591e-05/0.2532, allocations: 24.33 kB / 383.6 MB, free: 10.66 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.894e-05/0.2532, allocations: 5.312 kB / 383.6 MB, free: 10.66 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001097/0.2533, allocations: 150.2 kB / 383.7 MB, free: 10.57 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2533, allocations: 0 / 383.7 MB, free: 10.57 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003149/0.2536, allocations: 47.25 kB / 383.8 MB, free: 10.55 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.0005699/0.2542, allocations: 0.8238 MB / 384.6 MB, free: 9.836 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003841/0.2546, allocations: 170.5 kB / 384.7 MB, free: 9.789 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.2546, allocations: 4.844 kB / 384.8 MB, free: 9.785 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001742/0.2548, allocations: 79.08 kB / 384.8 MB, free: 9.766 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003489/0.2551, allocations: 35.56 kB / 384.9 MB, free: 9.754 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002304/0.2575, allocations: 2.234 MB / 387.1 MB, free: 8.066 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001568/0.2576, allocations: 0.7351 MB / 387.8 MB, free: 7.367 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001108/0.2578, allocations: 36.06 kB / 387.9 MB, free: 7.363 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001013/0.2579, allocations: 70.78 kB / 387.9 MB, free: 7.312 MB / 318.1 MB Notification: Performance of SimCode: time 3.61e-07/0.2579, allocations: 0 / 387.9 MB, free: 7.312 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02196/0.2798, allocations: 4.176 MB / 392.1 MB, free: 6.621 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.379/8.659, allocations: 5.438 kB / 392.1 MB, free: 6.617 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