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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002112/0.002112, allocations: 119.1 kB / 20.45 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002437/0.002437, allocations: 203.9 kB / 23.72 MB, free: 4.391 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.629/1.629, allocations: 230.5 MB / 257.4 MB, free: 7.738 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002474/0.002474, allocations: 59.91 kB / 377.7 MB, free: 2.824 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3751/0.3776, allocations: 53.41 MB / 431.1 MB, free: 6.441 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003766/0.3813, allocations: 1.801 MB / 432.9 MB, free: 4.637 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001332/0.3827, allocations: 0.6622 MB / 433.6 MB, free: 3.969 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000107/0.3828, allocations: 11.88 kB / 433.6 MB, free: 3.957 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001365/0.3829, allocations: 27.67 kB / 433.6 MB, free: 3.93 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001315/0.383, allocations: 27.73 kB / 433.7 MB, free: 3.902 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003539/0.3834, allocations: 99.77 kB / 433.8 MB, free: 3.805 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002562/0.3836, allocations: 175.5 kB / 433.9 MB, free: 3.633 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001809/0.3838, allocations: 50.59 kB / 434 MB, free: 3.578 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001958/0.384, allocations: 91.62 kB / 434.1 MB, free: 3.488 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001734/0.3842, allocations: 83.55 kB / 434.2 MB, free: 3.406 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.626e-05/0.3842, allocations: 16 kB / 434.2 MB, free: 3.391 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.165e-05/0.3843, allocations: 27.92 kB / 434.2 MB, free: 3.363 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.161e-05/0.3844, allocations: 47.84 kB / 434.2 MB, free: 3.316 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.118e-05/0.3845, allocations: 63.59 kB / 434.3 MB, free: 3.254 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003096/0.3848, allocations: 205.1 kB / 434.5 MB, free: 3.055 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.3848, allocations: 4 kB / 434.5 MB, free: 3.051 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3848, allocations: 3.938 kB / 434.5 MB, free: 3.047 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.033e-06/0.3848, allocations: 0 / 434.5 MB, free: 3.047 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.0008879/0.3857, allocations: 453.2 kB / 435 MB, free: 2.574 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.175e-05/0.3857, allocations: 15.98 kB / 435 MB, free: 2.559 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.738e-05/0.3858, allocations: 50.72 kB / 435 MB, free: 2.5 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001414/0.3859, allocations: 32.78 kB / 435.1 MB, free: 2.469 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002858/0.3862, allocations: 191.5 kB / 435.2 MB, free: 2.254 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.194e-05/0.3862, allocations: 12.38 kB / 435.3 MB, free: 2.242 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.945e-05/0.3863, allocations: 16.38 kB / 435.3 MB, free: 2.227 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003985/0.3867, allocations: 217.8 kB / 435.5 MB, free: 1.996 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.408e-06/0.3867, allocations: 3.938 kB / 435.5 MB, free: 1.992 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.82e-05/0.3867, allocations: 4 kB / 435.5 MB, free: 1.988 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.109e-05/0.3867, allocations: 8 kB / 435.5 MB, free: 1.98 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003214/0.387, allocations: 139.8 kB / 435.6 MB, free: 1.844 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001078/0.3881, allocations: 0.7185 MB / 436.4 MB, free: 1.07 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006122/0.3887, allocations: 182.6 kB / 436.5 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001395/0.3889, allocations: 64.75 kB / 436.6 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.542e-05/0.3889, allocations: 4 kB / 436.6 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002894/0.3892, allocations: 149 kB / 436.7 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.292e-06/0.3892, allocations: 0 / 436.7 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005828/0.3898, allocations: 241.4 kB / 437 MB, free: 416 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.587e-05/0.3898, allocations: 85.11 kB / 437.1 MB, free: 312 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002302/0.3901, allocations: 227 kB / 437.3 MB, free: 76 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.406e-05/0.3901, allocations: 33.7 kB / 437.3 MB, free: 36 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001248/0.3902, allocations: 140.4 kB / 437.5 MB, free: 15.89 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.091e-05/0.3903, allocations: 35.69 kB / 437.5 MB, free: 15.86 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001132/0.3904, allocations: 61.69 kB / 437.5 MB, free: 15.79 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001576/0.3905, allocations: 334.8 kB / 437.9 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001561/0.3907, allocations: 67.95 kB / 437.9 MB, free: 15.39 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002026/0.3909, allocations: 141.1 kB / 438.1 MB, free: 15.22 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003615/0.3912, allocations: 208.7 kB / 438.3 MB, free: 14.99 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.3912, allocations: 0 / 438.3 MB, free: 14.99 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000478/0.3917, allocations: 249.3 kB / 438.5 MB, free: 14.74 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.003e-05/0.3917, allocations: 8 kB / 438.5 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.3918, allocations: 3.938 kB / 438.5 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.935e-05/0.3918, allocations: 7.938 kB / 438.5 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001775/0.3919, allocations: 43.91 kB / 438.6 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.328e-05/0.392, allocations: 7.938 kB / 438.6 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001781/0.3921, allocations: 36.05 kB / 438.6 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.934e-05/0.3922, allocations: 12 kB / 438.6 MB, free: 14.62 MB / 350.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.0001735/0.3923, allocations: 151.7 kB / 438.8 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.484e-05/0.3924, allocations: 19.86 kB / 438.8 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002952/0.3927, allocations: 131 kB / 438.9 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.3927, allocations: 0 / 438.9 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.852e-06/0.3927, allocations: 7.938 kB / 438.9 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.895e-06/0.3927, allocations: 3.938 kB / 438.9 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006697/0.3934, allocations: 425.5 kB / 439.4 MB, free: 13.83 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.424e-06/0.3934, allocations: 4 kB / 439.4 MB, free: 13.83 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001127/0.3935, allocations: 20.3 kB / 439.4 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/0.3935, allocations: 0 / 439.4 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.396e-05/0.3935, allocations: 15.92 kB / 439.4 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.576e-06/0.3935, allocations: 4 kB / 439.4 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.548e-06/0.3935, allocations: 3.984 kB / 439.4 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004417/0.3939, allocations: 288.1 kB / 439.7 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.727e-05/0.394, allocations: 15.91 kB / 439.7 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.195e-05/0.394, allocations: 3.938 kB / 439.7 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001785/0.3942, allocations: 27.97 kB / 439.7 MB, free: 13.44 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.591e-05/0.3943, allocations: 15.97 kB / 439.8 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.13e-05/0.3943, allocations: 12 kB / 439.8 MB, free: 13.41 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001394/0.3944, allocations: 148.6 kB / 439.9 MB, free: 13.27 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3944, allocations: 0 / 439.9 MB, free: 13.27 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003067/0.3947, allocations: 47.89 kB / 440 MB, free: 13.22 MB / 350.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.0008321/0.3956, allocations: 0.8408 MB / 440.8 MB, free: 12.35 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004149/0.396, allocations: 155.8 kB / 441 MB, free: 12.2 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.396, allocations: 0 / 441 MB, free: 12.2 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000189/0.3962, allocations: 75.89 kB / 441 MB, free: 12.12 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003875/0.3966, allocations: 35.41 kB / 441.1 MB, free: 12.09 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002906/0.3995, allocations: 2.236 MB / 443.3 MB, free: 9.703 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001387/0.3996, allocations: 128.9 kB / 443.4 MB, free: 9.559 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001192/0.3997, allocations: 33.62 kB / 443.5 MB, free: 9.527 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001404/0.3999, allocations: 67.41 kB / 443.5 MB, free: 9.461 MB / 350.1 MB Notification: Performance of SimCode: time 1.052e-06/0.3999, allocations: 0 / 443.5 MB, free: 9.461 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0518/0.4517, allocations: 4.852 MB / 448.4 MB, free: 4.723 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.82/12.27, allocations: 13.34 kB / 448.4 MB, free: 4.715 MB / 350.1 MB " [Timeout remaining time 648] (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 --stepSize=0.00197941 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_IntegerNetwork1.fmu > Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.336044258903712]