Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009497/0.0009497, allocations: 87.62 kB / 21.43 MB, free: 3.137 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.004212/0.004212, allocations: 159.4 kB / 24.69 MB, free: 9.422 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9099/0.9099, allocations: 158.6 MB / 186.5 MB, free: 3.035 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.423e-06/1.423e-06, allocations: 0 / 298.4 MB, free: 3.531 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.848e-06/1.127e-05, allocations: 6.281 kB / 298.4 MB, free: 3.523 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.002117/0.002128, allocations: 1.778 MB / 300.2 MB, free: 1.727 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007776/0.002906, allocations: 0.6397 MB / 300.8 MB, free: 1.078 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.514e-05/0.002991, allocations: 7.938 kB / 300.9 MB, free: 1.07 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001149/0.003106, allocations: 35.59 kB / 300.9 MB, free: 1.035 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001164/0.003222, allocations: 31.73 kB / 300.9 MB, free: 1.004 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002456/0.003468, allocations: 83.7 kB / 301 MB, free: 0.9219 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001784/0.003647, allocations: 187.3 kB / 301.2 MB, free: 0.7383 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001386/0.003785, allocations: 46.94 kB / 301.2 MB, free: 0.6914 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001134/0.003898, allocations: 103.8 kB / 301.3 MB, free: 0.5898 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001105/0.004009, allocations: 67.78 kB / 301.4 MB, free: 0.5234 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.436e-05/0.004033, allocations: 16 kB / 301.4 MB, free: 0.5078 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.766e-05/0.004091, allocations: 20 kB / 301.4 MB, free: 500 kB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.355e-05/0.004145, allocations: 47.83 kB / 301.5 MB, free: 452 kB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.071e-05/0.004195, allocations: 51.83 kB / 301.5 MB, free: 400 kB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002014/0.004397, allocations: 211.2 kB / 301.7 MB, free: 188 kB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.665e-06/0.004399, allocations: 4 kB / 301.7 MB, free: 184 kB / 282.7 MB Notification: Performance of FrontEnd: time 7.91e-07/0.0044, allocations: 0 / 301.7 MB, free: 184 kB / 282.7 MB Notification: Performance of Transformations before backend: time 4.087e-06/0.004404, allocations: 0 / 301.7 MB, free: 184 kB / 282.7 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.1225/0.1269, allocations: 435.5 kB / 302.2 MB, free: 13.77 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.684e-05/0.1269, allocations: 13.55 kB / 302.2 MB, free: 13.76 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.283e-05/0.127, allocations: 50.75 kB / 302.2 MB, free: 13.72 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.552e-05/0.127, allocations: 24.2 kB / 302.3 MB, free: 13.71 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002198/0.1272, allocations: 187.9 kB / 302.4 MB, free: 13.57 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.833e-05/0.1273, allocations: 12.53 kB / 302.5 MB, free: 13.57 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.189e-05/0.1273, allocations: 17.78 kB / 302.5 MB, free: 13.57 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003077/0.1276, allocations: 212.2 kB / 302.7 MB, free: 13.5 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.205e-05/0.1276, allocations: 4.625 kB / 302.7 MB, free: 13.5 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.436e-05/0.1276, allocations: 8.875 kB / 302.7 MB, free: 13.5 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.2e-05/0.1276, allocations: 11.17 kB / 302.7 MB, free: 13.5 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002185/0.1278, allocations: 137.8 kB / 302.8 MB, free: 13.5 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006403/0.1285, allocations: 0.722 MB / 303.6 MB, free: 13 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003831/0.1289, allocations: 186.1 kB / 303.7 MB, free: 12.97 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.463e-05/0.129, allocations: 57.42 kB / 303.8 MB, free: 12.96 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.168e-05/0.129, allocations: 6.062 kB / 303.8 MB, free: 12.96 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001772/0.1292, allocations: 140.6 kB / 303.9 MB, free: 12.9 MB / 282.7 MB Notification: Performance of pre-optimization done (n=15): time 1.503e-06/0.1292, allocations: 0 / 303.9 MB, free: 12.9 MB / 282.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003773/0.1295, allocations: 244 kB / 304.2 MB, free: 12.86 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.133e-05/0.1296, allocations: 86.67 kB / 304.3 MB, free: 12.77 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001299/0.1297, allocations: 223.1 kB / 304.5 MB, free: 12.66 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.176e-05/0.1297, allocations: 30.02 kB / 304.5 MB, free: 12.63 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.357e-05/0.1298, allocations: 143.4 kB / 304.6 MB, free: 12.53 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.066e-05/0.1298, allocations: 31.69 kB / 304.7 MB, free: 12.52 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.716e-05/0.1298, allocations: 62.78 kB / 304.7 MB, free: 12.5 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 3.825e-05/0.1299, allocations: 333 kB / 305.1 MB, free: 12.18 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.744e-05/0.13, allocations: 68.44 kB / 305.1 MB, free: 12.18 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001078/0.1301, allocations: 134.8 kB / 305.3 MB, free: 12.1 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002017/0.1303, allocations: 220 kB / 305.5 MB, free: 12.02 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.1303, allocations: 1.312 kB / 305.5 MB, free: 12.02 MB / 282.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000268/0.1306, allocations: 246.2 kB / 305.7 MB, free: 11.98 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.539e-05/0.1306, allocations: 7.578 kB / 305.7 MB, free: 11.98 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/0.1306, allocations: 2.156 kB / 305.7 MB, free: 11.98 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.416e-05/0.1306, allocations: 3.375 kB / 305.7 MB, free: 11.98 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001026/0.1307, allocations: 39.47 kB / 305.8 MB, free: 11.98 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.923e-06/0.1307, allocations: 4.141 kB / 305.8 MB, free: 11.98 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.113e-05/0.1308, allocations: 36.16 kB / 305.8 MB, free: 11.97 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.15e-05/0.1308, allocations: 16.45 kB / 305.8 MB, free: 11.97 MB / 282.7 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 7.986e-05/0.1309, allocations: 150.1 kB / 306 MB, free: 11.85 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.691e-05/0.1309, allocations: 17.08 kB / 306 MB, free: 11.84 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001655/0.1311, allocations: 131.4 kB / 306.1 MB, free: 11.81 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.1311, allocations: 3.391 kB / 306.1 MB, free: 11.81 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/0.1311, allocations: 7.719 kB / 306.1 MB, free: 11.8 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.561e-06/0.1311, allocations: 2.391 kB / 306.1 MB, free: 11.8 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003529/0.1314, allocations: 441.5 kB / 306.6 MB, free: 11.5 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.1314, allocations: 5.797 kB / 306.6 MB, free: 11.5 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.786e-05/0.1315, allocations: 20.48 kB / 306.6 MB, free: 11.5 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/0.1315, allocations: 1.938 kB / 306.6 MB, free: 11.5 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.187e-05/0.1315, allocations: 3.531 kB / 306.6 MB, free: 11.5 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.963e-06/0.1315, allocations: 1.062 kB / 306.6 MB, free: 11.5 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.1315, allocations: 0 / 306.6 MB, free: 11.5 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002195/0.1317, allocations: 291.1 kB / 306.9 MB, free: 11.31 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.562e-05/0.1317, allocations: 14.94 kB / 306.9 MB, free: 11.3 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.998e-05/0.1318, allocations: 9.156 kB / 306.9 MB, free: 11.3 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.812e-05/0.1318, allocations: 19.52 kB / 306.9 MB, free: 11.3 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.101e-05/0.1319, allocations: 30.75 kB / 307 MB, free: 11.29 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.55e-05/0.1319, allocations: 9.906 kB / 307 MB, free: 11.29 MB / 282.7 MB Notification: Performance of sorting global known variables: time 7.228e-05/0.132, allocations: 145.1 kB / 307.1 MB, free: 11.19 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.132, allocations: 1.469 kB / 307.1 MB, free: 11.19 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001968/0.1322, allocations: 46.86 kB / 307.1 MB, free: 11.18 MB / 282.7 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.0003891/0.1326, allocations: 0.8252 MB / 308 MB, free: 10.46 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002478/0.1328, allocations: 162.2 kB / 308.1 MB, free: 10.43 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.373e-06/0.1328, allocations: 0 / 308.1 MB, free: 10.43 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000107/0.1329, allocations: 70.86 kB / 308.2 MB, free: 10.42 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002315/0.1332, allocations: 36.34 kB / 308.2 MB, free: 10.4 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001562/0.1347, allocations: 2.248 MB / 310.5 MB, free: 8.719 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.108e-05/0.1348, allocations: 123.4 kB / 310.6 MB, free: 8.641 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 7.827e-05/0.1349, allocations: 31.55 kB / 310.6 MB, free: 8.641 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.441e-05/0.135, allocations: 62.92 kB / 310.7 MB, free: 8.598 MB / 282.7 MB Notification: Performance of SimCode: time 6.41e-07/0.135, allocations: 0 / 310.7 MB, free: 8.598 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01842/0.1534, allocations: 4.94 MB / 315.6 MB, free: 7.266 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.257/7.411, allocations: 5.266 kB / 315.6 MB, free: 7.262 MB / 282.7 MB " [Timeout remaining time 653] (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00197941 Modelica_3_2_3_Modelica_Blocks_Examples_IntegerNetwork1.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable multiSwitch1.y in file Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1_res.csv. Warning: Get data of variable multiSwitch1.y from file Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1_res.csv failed! Error: Could not read variable triggeredAdd.y in file Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1_res.csv. Warning: Get data of variable triggeredAdd.y from file Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.149917084723711]