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.001381/0.001382, allocations: 102 kB / 17.2 MB, free: 6.293 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001737/0.001736, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.3/1.3, allocations: 227.4 MB / 246.3 MB, free: 10.76 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001109/0.00111, allocations: 60.34 kB / 306.3 MB, free: 0.9805 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08422/0.08535, allocations: 50.53 MB / 356.9 MB, free: 14.45 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.002703/0.08808, allocations: 1.894 MB / 358.8 MB, free: 12.54 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001016/0.08911, allocations: 0.6856 MB / 359.5 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.054e-05/0.08921, allocations: 8 kB / 359.5 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001147/0.08933, allocations: 19.8 kB / 359.5 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001066/0.08945, allocations: 23.78 kB / 359.5 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002203/0.08967, allocations: 83.86 kB / 359.6 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001806/0.08987, allocations: 167.4 kB / 359.8 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000148/0.09002, allocations: 74.61 kB / 359.8 MB, free: 11.47 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001306/0.09016, allocations: 71.64 kB / 359.9 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000123/0.09029, allocations: 87.61 kB / 360 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.625e-05/0.09033, allocations: 8 kB / 360 MB, free: 11.31 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.873e-05/0.0904, allocations: 24 kB / 360 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.854e-05/0.09047, allocations: 43.83 kB / 360.1 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.663e-05/0.09055, allocations: 79.47 kB / 360.1 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000197/0.09075, allocations: 171.6 kB / 360.3 MB, free: 11 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.09076, allocations: 0 / 360.3 MB, free: 11 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.01e-07/0.09077, allocations: 0 / 360.3 MB, free: 11 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.947e-06/0.09078, allocations: 4 kB / 360.3 MB, free: 10.99 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.0007886/0.09157, allocations: 0.5025 MB / 360.8 MB, free: 10.44 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.353e-05/0.09162, allocations: 16.03 kB / 360.8 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.408e-05/0.09168, allocations: 54.67 kB / 360.9 MB, free: 10.36 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001385/0.09182, allocations: 32.64 kB / 360.9 MB, free: 10.33 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002315/0.09206, allocations: 241.5 kB / 361.1 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.227e-05/0.09209, allocations: 24.11 kB / 361.2 MB, free: 10.03 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.412e-05/0.09212, allocations: 12.38 kB / 361.2 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003944/0.09252, allocations: 209.7 kB / 361.4 MB, free: 9.797 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.09254, allocations: 0 / 361.4 MB, free: 9.797 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.826e-05/0.09256, allocations: 8 kB / 361.4 MB, free: 9.789 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.723e-05/0.09258, allocations: 4 kB / 361.4 MB, free: 9.785 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003116/0.0929, allocations: 143.7 kB / 361.5 MB, free: 9.645 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009617/0.09387, allocations: 0.7894 MB / 362.3 MB, free: 8.793 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005766/0.09446, allocations: 186.6 kB / 362.5 MB, free: 8.602 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001478/0.09462, allocations: 64.81 kB / 362.6 MB, free: 8.535 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.885e-05/0.09466, allocations: 8 kB / 362.6 MB, free: 8.527 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002438/0.09491, allocations: 137 kB / 362.7 MB, free: 8.375 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.393e-06/0.09492, allocations: 0 / 362.7 MB, free: 8.375 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005383/0.09546, allocations: 241.3 kB / 362.9 MB, free: 8.133 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.046e-05/0.09552, allocations: 97.41 kB / 363 MB, free: 8.02 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001843/0.09571, allocations: 222.9 kB / 363.3 MB, free: 7.789 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.184e-05/0.09574, allocations: 29.69 kB / 363.3 MB, free: 7.754 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.794e-05/0.09584, allocations: 144.2 kB / 363.4 MB, free: 7.609 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.055e-05/0.09588, allocations: 35.58 kB / 363.5 MB, free: 7.574 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.859e-05/0.09596, allocations: 57.61 kB / 363.5 MB, free: 7.512 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001125/0.09608, allocations: 334.8 kB / 363.9 MB, free: 7.176 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001611/0.09625, allocations: 71.95 kB / 363.9 MB, free: 7.105 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001928/0.09645, allocations: 137.6 kB / 364.1 MB, free: 6.941 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003434/0.0968, allocations: 216.3 kB / 364.3 MB, free: 6.699 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/0.09681, allocations: 0 / 364.3 MB, free: 6.699 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004589/0.09728, allocations: 241.5 kB / 364.5 MB, free: 6.457 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.513e-05/0.0973, allocations: 7.984 kB / 364.5 MB, free: 6.449 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/0.09731, allocations: 4 kB / 364.5 MB, free: 6.445 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.323e-05/0.09733, allocations: 4.25 kB / 364.5 MB, free: 6.441 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001689/0.09751, allocations: 43.92 kB / 364.6 MB, free: 6.398 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.234e-06/0.09752, allocations: 0 / 364.6 MB, free: 6.398 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001696/0.0977, allocations: 43.66 kB / 364.6 MB, free: 6.355 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.655e-05/0.09772, allocations: 8 kB / 364.6 MB, free: 6.348 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.0001352/0.09786, allocations: 152.6 kB / 364.8 MB, free: 6.191 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.116e-05/0.0979, allocations: 15.81 kB / 364.8 MB, free: 6.176 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002395/0.09814, allocations: 135 kB / 364.9 MB, free: 6.035 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.484e-06/0.09816, allocations: 3.938 kB / 364.9 MB, free: 6.031 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.09817, allocations: 4 kB / 364.9 MB, free: 6.027 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.09818, allocations: 3.938 kB / 364.9 MB, free: 6.023 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000574/0.09876, allocations: 486.2 kB / 365.4 MB, free: 5.492 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.704e-06/0.09877, allocations: 0 / 365.4 MB, free: 5.492 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001164/0.09889, allocations: 19.92 kB / 365.4 MB, free: 5.473 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.098e-06/0.0989, allocations: 4 kB / 365.4 MB, free: 5.469 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.576e-05/0.09893, allocations: 11.94 kB / 365.4 MB, free: 5.457 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.09893, allocations: 0 / 365.4 MB, free: 5.457 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.09894, allocations: 4 kB / 365.4 MB, free: 5.453 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003937/0.09934, allocations: 286.5 kB / 365.7 MB, free: 5.156 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.721e-05/0.09941, allocations: 96.84 kB / 365.8 MB, free: 5.043 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.259e-05/0.09945, allocations: 7.938 kB / 365.8 MB, free: 5.035 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001703/0.09962, allocations: 19.98 kB / 365.8 MB, free: 5.016 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.067e-05/0.0997, allocations: 19.97 kB / 365.9 MB, free: 4.996 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.814e-05/0.09972, allocations: 7.984 kB / 365.9 MB, free: 4.988 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001168/0.09985, allocations: 144.7 kB / 366 MB, free: 4.848 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.09985, allocations: 0 / 366 MB, free: 4.848 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002864/0.1001, allocations: 43.84 kB / 366 MB, free: 4.805 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.0007024/0.1009, allocations: 0.8301 MB / 366.9 MB, free: 3.945 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003754/0.1012, allocations: 172.3 kB / 367 MB, free: 3.777 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.1013, allocations: 0 / 367 MB, free: 3.777 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001741/0.1014, allocations: 75.89 kB / 367.1 MB, free: 3.703 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003353/0.1018, allocations: 23.98 kB / 367.1 MB, free: 3.68 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002551/0.1043, allocations: 2.299 MB / 369.4 MB, free: 1.234 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002641/0.1046, allocations: 0.7284 MB / 370.2 MB, free: 492 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001065/0.1047, allocations: 41.52 kB / 370.2 MB, free: 452 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001012/0.1048, allocations: 63.41 kB / 370.3 MB, free: 388 kB / 302.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1048, allocations: 0 / 370.3 MB, free: 388 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1452/0.25, allocations: 3.727 MB / 374 MB, free: 19.68 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001389/0.2502, allocations: 191.7 kB / 374.2 MB, free: 19.42 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.847/2.097, allocations: 0.875 kB / 374.2 MB, free: 19.42 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