Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_4_0_0_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.001596/0.001596, allocations: 112.2 kB / 16.62 MB, free: 6.812 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.001716/0.001717, allocations: 185.8 kB / 17.55 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.294/1.294, allocations: 222.9 MB / 241.2 MB, free: 15.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001069/0.001069, allocations: 46.77 kB / 300.2 MB, free: 6.109 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1069/0.108, allocations: 49.44 MB / 349.7 MB, free: 4.66 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003805/0.1118, allocations: 1.871 MB / 351.5 MB, free: 2.766 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001322/0.1132, allocations: 0.6154 MB / 352.2 MB, free: 2.148 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001884/0.1134, allocations: 4 kB / 352.2 MB, free: 2.145 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001764/0.1136, allocations: 19.8 kB / 352.2 MB, free: 2.125 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000217/0.1138, allocations: 27.78 kB / 352.2 MB, free: 2.098 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004571/0.1143, allocations: 75.86 kB / 352.3 MB, free: 2.023 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000367/0.1147, allocations: 175.4 kB / 352.5 MB, free: 1.852 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003004/0.115, allocations: 74.61 kB / 352.5 MB, free: 1.777 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002216/0.1152, allocations: 67.77 kB / 352.6 MB, free: 1.711 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002565/0.1155, allocations: 91.55 kB / 352.7 MB, free: 1.621 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.386e-05/0.1156, allocations: 16 kB / 352.7 MB, free: 1.605 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.435e-05/0.1157, allocations: 23.94 kB / 352.7 MB, free: 1.582 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.174e-05/0.1158, allocations: 51.83 kB / 352.8 MB, free: 1.531 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001267/0.1159, allocations: 79.53 kB / 352.8 MB, free: 1.453 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003027/0.1162, allocations: 191.5 kB / 353 MB, free: 1.266 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.1162, allocations: 0 / 353 MB, free: 1.266 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.1162, allocations: 4 kB / 353 MB, free: 1.262 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.975e-06/0.1163, allocations: 0 / 353 MB, free: 1.262 MB / 286.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.001014/0.1173, allocations: 0.5023 MB / 353.5 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.571e-05/0.1173, allocations: 12.03 kB / 353.6 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.499e-05/0.1174, allocations: 46.73 kB / 353.6 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.623e-05/0.1174, allocations: 24.66 kB / 353.6 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002793/0.1177, allocations: 239.8 kB / 353.9 MB, free: 356 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.855e-05/0.1178, allocations: 28.36 kB / 353.9 MB, free: 328 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.385e-05/0.1178, allocations: 19.94 kB / 353.9 MB, free: 308 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004236/0.1182, allocations: 205.9 kB / 354.1 MB, free: 80 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.029e-05/0.1183, allocations: 4 kB / 354.1 MB, free: 76 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.608e-05/0.1183, allocations: 4 kB / 354.1 MB, free: 72 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.796e-05/0.1184, allocations: 8 kB / 354.1 MB, free: 64 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003985/0.1188, allocations: 143.7 kB / 354.3 MB, free: 15.92 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001311/0.1201, allocations: 0.7817 MB / 355 MB, free: 15.08 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006505/0.1207, allocations: 190.6 kB / 355.2 MB, free: 14.88 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001478/0.1209, allocations: 64.81 kB / 355.3 MB, free: 14.82 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.744e-05/0.121, allocations: 4 kB / 355.3 MB, free: 14.81 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002833/0.1212, allocations: 156.4 kB / 355.4 MB, free: 14.64 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 2.284e-06/0.1213, allocations: 0 / 355.4 MB, free: 14.64 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006019/0.1219, allocations: 233.3 kB / 355.7 MB, free: 14.41 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.244e-05/0.1219, allocations: 93.03 kB / 355.8 MB, free: 14.3 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002046/0.1222, allocations: 214.8 kB / 356 MB, free: 14.08 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.784e-05/0.1222, allocations: 33.64 kB / 356 MB, free: 14.04 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.905e-05/0.1223, allocations: 148.3 kB / 356.2 MB, free: 13.89 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.614e-05/0.1223, allocations: 39.53 kB / 356.2 MB, free: 13.86 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.163e-05/0.1224, allocations: 53.7 kB / 356.2 MB, free: 13.8 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000128/0.1226, allocations: 330.8 kB / 356.6 MB, free: 13.46 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001548/0.1227, allocations: 67.95 kB / 356.6 MB, free: 13.4 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001918/0.1229, allocations: 132.5 kB / 356.8 MB, free: 13.24 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003435/0.1233, allocations: 208.3 kB / 357 MB, free: 13 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.1233, allocations: 0 / 357 MB, free: 13 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004485/0.1237, allocations: 257.1 kB / 357.2 MB, free: 12.75 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.493e-05/0.1238, allocations: 4 kB / 357.2 MB, free: 12.74 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/0.1238, allocations: 4 kB / 357.2 MB, free: 12.74 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.517e-05/0.1238, allocations: 4 kB / 357.2 MB, free: 12.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001749/0.124, allocations: 39.91 kB / 357.3 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.076e-05/0.124, allocations: 7.938 kB / 357.3 MB, free: 12.69 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001693/0.1242, allocations: 35.81 kB / 357.3 MB, free: 12.65 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.688e-05/0.1242, allocations: 8.25 kB / 357.3 MB, free: 12.64 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.0001475/0.1243, allocations: 152 kB / 357.5 MB, free: 12.49 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.185e-05/0.1244, allocations: 16.12 kB / 357.5 MB, free: 12.47 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000248/0.1246, allocations: 139.4 kB / 357.6 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.1247, allocations: 96 / 357.6 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.463e-06/0.1247, allocations: 11.88 kB / 357.6 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.516e-06/0.1247, allocations: 0 / 357.6 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005502/0.1252, allocations: 482.2 kB / 358.1 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.1252, allocations: 3.938 kB / 358.1 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001151/0.1254, allocations: 15.98 kB / 358.1 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.358e-06/0.1254, allocations: 3.938 kB / 358.1 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.677e-05/0.1254, allocations: 7.984 kB / 358.1 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.1254, allocations: 0 / 358.1 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.1254, allocations: 3.938 kB / 358.1 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000403/0.1258, allocations: 284.1 kB / 358.4 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.617e-05/0.1259, allocations: 100.7 kB / 358.5 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.255e-05/0.1259, allocations: 7.984 kB / 358.5 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001683/0.1261, allocations: 15.98 kB / 358.5 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.791e-05/0.1262, allocations: 23.97 kB / 358.6 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.811e-05/0.1262, allocations: 4 kB / 358.6 MB, free: 11.29 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001158/0.1263, allocations: 148.6 kB / 358.7 MB, free: 11.14 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1263, allocations: 0 / 358.7 MB, free: 11.14 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003061/0.1267, allocations: 39.98 kB / 358.7 MB, free: 11.1 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.0007728/0.1274, allocations: 0.8384 MB / 359.6 MB, free: 10.23 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004023/0.1278, allocations: 179.6 kB / 359.8 MB, free: 10.06 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.1279, allocations: 0 / 359.8 MB, free: 10.06 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000179/0.128, allocations: 79.89 kB / 359.8 MB, free: 9.98 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003499/0.1284, allocations: 34.7 kB / 359.9 MB, free: 9.949 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002726/0.1311, allocations: 2.277 MB / 362.2 MB, free: 7.535 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003199/0.1315, allocations: 0.732 MB / 362.9 MB, free: 6.777 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000111/0.1316, allocations: 33.53 kB / 362.9 MB, free: 6.746 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001159/0.1317, allocations: 63.41 kB / 363 MB, free: 6.684 MB / 302.1 MB Notification: Performance of SimCode: time 1.613e-06/0.1317, allocations: 8 kB / 363 MB, free: 6.676 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01443/0.1462, allocations: 3.816 MB / 366.8 MB, free: 2.965 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001946/0.1464, allocations: 186.7 kB / 367 MB, free: 2.711 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.5/2.646, allocations: 4 kB / 367 MB, free: 2.707 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_IntegerNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_IntegerNetwork1.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches