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.001201/0.0012, allocations: 108.9 kB / 17.33 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00119/0.00119, allocations: 209.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.356/1.356, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001199/0.001199, allocations: 59.36 kB / 306.5 MB, free: 0.8438 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.1017, allocations: 50.53 MB / 357.1 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003764/0.1055, allocations: 1.898 MB / 359 MB, free: 12.41 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001457/0.107, allocations: 0.6778 MB / 359.6 MB, free: 11.72 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000224/0.1072, allocations: 7.938 kB / 359.7 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001901/0.1074, allocations: 19.8 kB / 359.7 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002141/0.1077, allocations: 23.78 kB / 359.7 MB, free: 11.67 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000475/0.1082, allocations: 91.86 kB / 359.8 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003572/0.1085, allocations: 171.4 kB / 360 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002557/0.1088, allocations: 78.62 kB / 360 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002766/0.1091, allocations: 75.7 kB / 360.1 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000265/0.1094, allocations: 91.53 kB / 360.2 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.562e-05/0.1094, allocations: 12 kB / 360.2 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001137/0.1096, allocations: 27.98 kB / 360.2 MB, free: 11.13 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001/0.1097, allocations: 47.84 kB / 360.3 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001352/0.1098, allocations: 87.45 kB / 360.4 MB, free: 11 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003869/0.1102, allocations: 195.5 kB / 360.6 MB, free: 10.81 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.062e-06/0.1102, allocations: 0 / 360.6 MB, free: 10.81 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.1102, allocations: 0 / 360.6 MB, free: 10.81 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.483e-05/0.1103, allocations: 4 kB / 360.6 MB, free: 10.8 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.00119/0.1115, allocations: 0.4986 MB / 361.1 MB, free: 10.26 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.614e-05/0.1115, allocations: 12.03 kB / 361.1 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.955e-05/0.1116, allocations: 46.73 kB / 361.1 MB, free: 10.19 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001813/0.1118, allocations: 32.64 kB / 361.2 MB, free: 10.16 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003348/0.1121, allocations: 245.5 kB / 361.4 MB, free: 9.879 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.302e-05/0.1122, allocations: 20.12 kB / 361.4 MB, free: 9.859 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.442e-05/0.1122, allocations: 16.31 kB / 361.4 MB, free: 9.844 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004227/0.1126, allocations: 209.6 kB / 361.6 MB, free: 9.621 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.022e-05/0.1126, allocations: 0 / 361.6 MB, free: 9.621 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.141e-05/0.1127, allocations: 8 kB / 361.6 MB, free: 9.613 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.3e-05/0.1127, allocations: 7.984 kB / 361.6 MB, free: 9.605 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000334/0.113, allocations: 151.7 kB / 361.8 MB, free: 9.457 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001268/0.1143, allocations: 0.7894 MB / 362.6 MB, free: 8.605 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006577/0.115, allocations: 182.7 kB / 362.8 MB, free: 8.418 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000161/0.1152, allocations: 64.81 kB / 362.8 MB, free: 8.352 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.645e-05/0.1152, allocations: 7.938 kB / 362.8 MB, free: 8.344 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002898/0.1155, allocations: 145 kB / 363 MB, free: 8.184 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.703e-06/0.1155, allocations: 0 / 363 MB, free: 8.184 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005956/0.1161, allocations: 245.3 kB / 363.2 MB, free: 7.938 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.761e-05/0.1162, allocations: 85.05 kB / 363.3 MB, free: 7.836 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002185/0.1164, allocations: 226.9 kB / 363.5 MB, free: 7.602 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.815e-05/0.1165, allocations: 29.7 kB / 363.5 MB, free: 7.566 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001026/0.1166, allocations: 144.2 kB / 363.7 MB, free: 7.422 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.644e-05/0.1166, allocations: 39.64 kB / 363.7 MB, free: 7.383 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.265e-05/0.1167, allocations: 57.59 kB / 363.8 MB, free: 7.32 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001457/0.1169, allocations: 338.8 kB / 364.1 MB, free: 6.98 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001551/0.117, allocations: 67.95 kB / 364.2 MB, free: 6.914 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001968/0.1172, allocations: 133.6 kB / 364.3 MB, free: 6.754 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00035/0.1176, allocations: 204.4 kB / 364.5 MB, free: 6.523 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.1176, allocations: 0 / 364.5 MB, free: 6.523 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004729/0.1181, allocations: 257.2 kB / 364.8 MB, free: 6.266 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.619e-05/0.1181, allocations: 4 kB / 364.8 MB, free: 6.262 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.826e-06/0.1181, allocations: 4 kB / 364.8 MB, free: 6.258 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.016e-05/0.1181, allocations: 4 kB / 364.8 MB, free: 6.254 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001729/0.1183, allocations: 39.91 kB / 364.8 MB, free: 6.215 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.506e-06/0.1183, allocations: 4 kB / 364.8 MB, free: 6.211 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001966/0.1185, allocations: 35.67 kB / 364.9 MB, free: 6.176 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.317e-05/0.1186, allocations: 15.98 kB / 364.9 MB, free: 6.16 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.0001624/0.1187, allocations: 148.8 kB / 365 MB, free: 6.008 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.86e-05/0.1188, allocations: 19.8 kB / 365 MB, free: 5.988 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002731/0.1191, allocations: 135 kB / 365.2 MB, free: 5.848 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/0.1191, allocations: 480 / 365.2 MB, free: 5.848 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.174e-06/0.1191, allocations: 4 kB / 365.2 MB, free: 5.844 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.1191, allocations: 3.938 kB / 365.2 MB, free: 5.84 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006439/0.1198, allocations: 486.2 kB / 365.6 MB, free: 5.309 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.1198, allocations: 320 / 365.6 MB, free: 5.309 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001162/0.1199, allocations: 15.98 kB / 365.7 MB, free: 5.293 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.541e-06/0.1199, allocations: 4 kB / 365.7 MB, free: 5.289 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.113e-05/0.1199, allocations: 11.92 kB / 365.7 MB, free: 5.277 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.345e-06/0.1199, allocations: 3.938 kB / 365.7 MB, free: 5.273 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/0.1199, allocations: 4 kB / 365.7 MB, free: 5.27 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005105/0.1205, allocations: 284.1 kB / 366 MB, free: 4.973 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.312e-05/0.1205, allocations: 88.92 kB / 366.1 MB, free: 4.867 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.784e-05/0.1206, allocations: 11.94 kB / 366.1 MB, free: 4.855 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001716/0.1208, allocations: 15.97 kB / 366.1 MB, free: 4.84 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.783e-05/0.1209, allocations: 27.91 kB / 366.1 MB, free: 4.812 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.777e-05/0.1209, allocations: 4 kB / 366.1 MB, free: 4.809 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001364/0.121, allocations: 148.7 kB / 366.3 MB, free: 4.664 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.633e-06/0.121, allocations: 0 / 366.3 MB, free: 4.664 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003117/0.1213, allocations: 51.77 kB / 366.3 MB, free: 4.613 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.0008302/0.1222, allocations: 0.8289 MB / 367.1 MB, free: 3.758 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004408/0.1226, allocations: 175.7 kB / 367.3 MB, free: 3.586 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.1226, allocations: 0 / 367.3 MB, free: 3.586 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001909/0.1228, allocations: 79.89 kB / 367.4 MB, free: 3.508 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003673/0.1232, allocations: 36.73 kB / 367.4 MB, free: 3.473 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003142/0.1264, allocations: 2.289 MB / 369.7 MB, free: 1.035 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000385/0.1268, allocations: 0.7436 MB / 370.5 MB, free: 272 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001175/0.1269, allocations: 29.53 kB / 370.5 MB, free: 244 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001374/0.127, allocations: 63.41 kB / 370.5 MB, free: 180 kB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1271, allocations: 0 / 370.5 MB, free: 180 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1872/0.3142, allocations: 3.845 MB / 374.4 MB, free: 20.07 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001662/0.3144, allocations: 195.5 kB / 374.6 MB, free: 19.81 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.018/2.332, allocations: 0 / 374.6 MB, free: 19.81 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