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.001125/0.001125, allocations: 91.7 kB / 16.65 MB, free: 6.598 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.001219/0.001219, allocations: 179.3 kB / 17.56 MB, free: 6.199 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.508/1.508, allocations: 223.3 MB / 241.6 MB, free: 14.38 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002745/0.0002745, allocations: 6.281 kB / 301.5 MB, free: 5.801 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1162/0.1165, allocations: 50.42 MB / 351.9 MB, free: 3.375 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003392/0.12, allocations: 1.524 MB / 353.5 MB, free: 1.832 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001866/0.1219, allocations: 0.6077 MB / 354.1 MB, free: 1.223 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002941/0.1223, allocations: 4 kB / 354.1 MB, free: 1.219 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002226/0.1225, allocations: 19.8 kB / 354.1 MB, free: 1.199 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002763/0.1228, allocations: 23.78 kB / 354.1 MB, free: 1.176 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000514/0.1233, allocations: 75.86 kB / 354.2 MB, free: 1.102 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000393/0.1237, allocations: 167.4 kB / 354.3 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003388/0.1241, allocations: 70.62 kB / 354.4 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002479/0.1244, allocations: 51.78 kB / 354.5 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002852/0.1247, allocations: 79.48 kB / 354.5 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.046e-05/0.1247, allocations: 8 kB / 354.6 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001279/0.1249, allocations: 16 kB / 354.6 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001367/0.125, allocations: 35.84 kB / 354.6 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001904/0.1252, allocations: 93.23 kB / 354.7 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004177/0.1256, allocations: 163.6 kB / 354.9 MB, free: 428 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.236e-06/0.1257, allocations: 0 / 354.9 MB, free: 428 kB / 286.1 MB Notification: Performance of FrontEnd: time 3.907e-06/0.1257, allocations: 0 / 354.9 MB, free: 428 kB / 286.1 MB Notification: Performance of Transformations before backend: time 2.053e-05/0.1257, allocations: 4 kB / 354.9 MB, free: 424 kB / 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.00149/0.1272, allocations: 490.7 kB / 355.3 MB, free: 15.89 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.114e-05/0.1273, allocations: 8.031 kB / 355.3 MB, free: 15.88 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001157/0.1274, allocations: 54.73 kB / 355.4 MB, free: 15.82 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.65e-05/0.1275, allocations: 20.66 kB / 355.4 MB, free: 15.8 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004805/0.128, allocations: 243.9 kB / 355.7 MB, free: 15.52 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.501e-05/0.1281, allocations: 8.375 kB / 355.7 MB, free: 15.51 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.429e-05/0.1281, allocations: 23.92 kB / 355.7 MB, free: 15.49 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005841/0.1287, allocations: 217.9 kB / 355.9 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.51e-05/0.1287, allocations: 0 / 355.9 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.42e-05/0.1288, allocations: 4 kB / 355.9 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.373e-05/0.1288, allocations: 8 kB / 355.9 MB, free: 15.24 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004428/0.1293, allocations: 143.8 kB / 356.1 MB, free: 15.1 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001582/0.1309, allocations: 0.7972 MB / 356.9 MB, free: 14.24 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007252/0.1316, allocations: 210.7 kB / 357.1 MB, free: 14.03 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001602/0.1318, allocations: 72.75 kB / 357.1 MB, free: 13.95 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.081e-05/0.1318, allocations: 7.984 kB / 357.1 MB, free: 13.95 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003155/0.1322, allocations: 153 kB / 357.3 MB, free: 13.78 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.563e-06/0.1322, allocations: 0 / 357.3 MB, free: 13.78 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006789/0.1329, allocations: 257.2 kB / 357.5 MB, free: 13.52 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.629e-05/0.133, allocations: 88.98 kB / 357.6 MB, free: 13.41 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003045/0.1333, allocations: 222.9 kB / 357.8 MB, free: 13.19 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.055e-05/0.1333, allocations: 25.7 kB / 357.9 MB, free: 13.16 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001125/0.1334, allocations: 144.2 kB / 358 MB, free: 13.01 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.817e-05/0.1335, allocations: 27.56 kB / 358 MB, free: 12.98 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.359e-05/0.1336, allocations: 49.62 kB / 358.1 MB, free: 12.93 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001629/0.1338, allocations: 326.8 kB / 358.4 MB, free: 12.6 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001814/0.134, allocations: 67.95 kB / 358.5 MB, free: 12.54 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002298/0.1342, allocations: 144.5 kB / 358.6 MB, free: 12.36 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003979/0.1346, allocations: 220.6 kB / 358.8 MB, free: 12.12 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.1346, allocations: 0 / 358.8 MB, free: 12.12 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005282/0.1351, allocations: 269.1 kB / 359.1 MB, free: 11.85 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.934e-05/0.1352, allocations: 4 kB / 359.1 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.273e-05/0.1352, allocations: 7.984 kB / 359.1 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.828e-05/0.1352, allocations: 4 kB / 359.1 MB, free: 11.83 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001848/0.1354, allocations: 39.91 kB / 359.1 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.471e-05/0.1354, allocations: 11.88 kB / 359.2 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002063/0.1356, allocations: 40.05 kB / 359.2 MB, free: 11.74 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.884e-05/0.1357, allocations: 4 kB / 359.2 MB, free: 11.74 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.0001992/0.1359, allocations: 152 kB / 359.3 MB, free: 11.58 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.01e-05/0.1359, allocations: 19.72 kB / 359.4 MB, free: 11.56 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002802/0.1362, allocations: 131 kB / 359.5 MB, free: 11.42 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.1362, allocations: 0 / 359.5 MB, free: 11.42 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.377e-06/0.1363, allocations: 3.938 kB / 359.5 MB, free: 11.42 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.089e-05/0.1363, allocations: 11.98 kB / 359.5 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006797/0.137, allocations: 478.7 kB / 360 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.137, allocations: 0 / 360 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001203/0.1371, allocations: 15.98 kB / 360 MB, free: 10.87 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.071e-06/0.1371, allocations: 8.031 kB / 360 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.748e-05/0.1371, allocations: 11.94 kB / 360 MB, free: 10.85 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.851e-06/0.1371, allocations: 7.938 kB / 360 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.447e-06/0.1372, allocations: 3.984 kB / 360 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000435/0.1376, allocations: 287.2 kB / 360.3 MB, free: 10.54 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.437e-05/0.1377, allocations: 100.8 kB / 360.4 MB, free: 10.42 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.999e-05/0.1377, allocations: 4 kB / 360.4 MB, free: 10.42 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001794/0.1379, allocations: 23.97 kB / 360.4 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.481e-05/0.138, allocations: 19.97 kB / 360.4 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.886e-05/0.138, allocations: 8 kB / 360.5 MB, free: 10.37 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001216/0.1381, allocations: 144.6 kB / 360.6 MB, free: 10.23 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1381, allocations: 4 kB / 360.6 MB, free: 10.22 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003072/0.1384, allocations: 39.91 kB / 360.6 MB, free: 10.18 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.0007648/0.1392, allocations: 0.8461 MB / 361.5 MB, free: 9.309 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003993/0.1396, allocations: 184.3 kB / 361.7 MB, free: 9.129 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.636e-06/0.1396, allocations: 4 kB / 361.7 MB, free: 9.125 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001925/0.1398, allocations: 79.89 kB / 361.7 MB, free: 9.047 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003484/0.1402, allocations: 26.33 kB / 361.8 MB, free: 9.023 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002818/0.143, allocations: 2.309 MB / 364.1 MB, free: 6.578 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002961/0.1433, allocations: 0.7362 MB / 364.8 MB, free: 5.816 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.00011/0.1434, allocations: 37.5 kB / 364.9 MB, free: 5.781 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001079/0.1436, allocations: 63.59 kB / 364.9 MB, free: 5.719 MB / 302.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1436, allocations: 4 kB / 364.9 MB, free: 5.715 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01423/0.1578, allocations: 3.595 MB / 368.5 MB, free: 2.23 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002616/0.1581, allocations: 188.4 kB / 368.7 MB, free: 1.977 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.96/2.119, allocations: 0 / 368.7 MB, free: 1.977 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