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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001845/0.001845, allocations: 120.1 kB / 17.78 MB, free: 5.23 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002039/0.002039, allocations: 198.8 kB / 20.73 MB, free: 2.289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.457/1.457, allocations: 225.6 MB / 249.1 MB, free: 3.598 MB / 190.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001892/0.001892, allocations: 51.92 kB / 365.6 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1232/0.1251, allocations: 52.14 MB / 417.8 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.004142/0.1293, allocations: 1.845 MB / 419.6 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001539/0.1308, allocations: 0.6232 MB / 420.2 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001268/0.1309, allocations: 7.938 kB / 420.2 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001673/0.1311, allocations: 27.66 kB / 420.3 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001798/0.1313, allocations: 31.72 kB / 420.3 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003831/0.1317, allocations: 91.78 kB / 420.4 MB, free: 9.965 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000318/0.132, allocations: 171.5 kB / 420.6 MB, free: 9.797 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00022/0.1322, allocations: 54.64 kB / 420.6 MB, free: 9.734 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001702/0.1324, allocations: 87.56 kB / 420.7 MB, free: 9.648 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001894/0.1326, allocations: 83.61 kB / 420.8 MB, free: 9.566 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.948e-05/0.1326, allocations: 16 kB / 420.8 MB, free: 9.551 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.241e-05/0.1327, allocations: 20 kB / 420.8 MB, free: 9.531 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001015/0.1328, allocations: 51.77 kB / 420.9 MB, free: 9.48 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001204/0.1329, allocations: 83.47 kB / 420.9 MB, free: 9.398 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003636/0.1333, allocations: 195.1 kB / 421.1 MB, free: 9.207 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.1333, allocations: 7.938 kB / 421.1 MB, free: 9.199 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.1333, allocations: 4 kB / 421.2 MB, free: 9.195 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.232e-05/0.1333, allocations: 0 / 421.2 MB, free: 9.195 MB / 350.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.001197/0.1345, allocations: 0.5062 MB / 421.7 MB, free: 8.641 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.64e-05/0.1345, allocations: 12.03 kB / 421.7 MB, free: 8.629 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.45e-05/0.1346, allocations: 46.73 kB / 421.7 MB, free: 8.574 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.282e-05/0.1347, allocations: 24.8 kB / 421.7 MB, free: 8.551 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003874/0.1351, allocations: 256.4 kB / 422 MB, free: 8.262 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.034e-05/0.1351, allocations: 12.12 kB / 422 MB, free: 8.25 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.697e-05/0.1351, allocations: 20 kB / 422 MB, free: 8.23 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005593/0.1357, allocations: 205.7 kB / 422.2 MB, free: 8.008 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.496e-05/0.1357, allocations: 11.88 kB / 422.2 MB, free: 7.996 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.793e-05/0.1357, allocations: 4 kB / 422.2 MB, free: 7.992 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.164e-05/0.1358, allocations: 8 kB / 422.2 MB, free: 7.984 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004832/0.1363, allocations: 143.8 kB / 422.4 MB, free: 7.844 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001523/0.1378, allocations: 0.7856 MB / 423.2 MB, free: 6.996 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007554/0.1385, allocations: 182.6 kB / 423.3 MB, free: 6.809 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001624/0.1387, allocations: 56.83 kB / 423.4 MB, free: 6.75 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.822e-05/0.1387, allocations: 3.984 kB / 423.4 MB, free: 6.746 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002926/0.139, allocations: 143.6 kB / 423.5 MB, free: 6.59 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.473e-06/0.139, allocations: 7.938 kB / 423.6 MB, free: 6.582 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006569/0.1397, allocations: 245.4 kB / 423.8 MB, free: 6.336 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.288e-05/0.1398, allocations: 81.05 kB / 423.9 MB, free: 6.238 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002261/0.14, allocations: 222.9 kB / 424.1 MB, free: 6.008 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.041e-05/0.14, allocations: 34.08 kB / 424.1 MB, free: 5.969 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001056/0.1401, allocations: 136.4 kB / 424.3 MB, free: 5.832 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.133e-05/0.1402, allocations: 39.73 kB / 424.3 MB, free: 5.793 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.44e-05/0.1403, allocations: 65.64 kB / 424.4 MB, free: 5.723 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001485/0.1404, allocations: 334.8 kB / 424.7 MB, free: 5.387 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000175/0.1406, allocations: 67.95 kB / 424.8 MB, free: 5.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002237/0.1408, allocations: 145.3 kB / 424.9 MB, free: 5.148 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003807/0.1412, allocations: 208.4 kB / 425.1 MB, free: 4.914 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.1412, allocations: 4 kB / 425.1 MB, free: 4.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005308/0.1417, allocations: 245.5 kB / 425.3 MB, free: 4.664 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/0.1417, allocations: 10.19 kB / 425.4 MB, free: 4.656 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.957e-06/0.1417, allocations: 4 kB / 425.4 MB, free: 4.652 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.611e-05/0.1418, allocations: 4 kB / 425.4 MB, free: 4.648 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000187/0.1419, allocations: 43.84 kB / 425.4 MB, free: 4.605 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.187e-05/0.142, allocations: 7.938 kB / 425.4 MB, free: 4.598 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001827/0.1421, allocations: 31.83 kB / 425.4 MB, free: 4.566 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.01e-05/0.1422, allocations: 12 kB / 425.5 MB, free: 4.555 MB / 350.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.0001572/0.1423, allocations: 152 kB / 425.6 MB, free: 4.398 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.389e-05/0.1424, allocations: 15.91 kB / 425.6 MB, free: 4.383 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000281/0.1426, allocations: 135 kB / 425.8 MB, free: 4.242 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.334e-06/0.1426, allocations: 7.938 kB / 425.8 MB, free: 4.234 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.1426, allocations: 0 / 425.8 MB, free: 4.234 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.1426, allocations: 3.984 kB / 425.8 MB, free: 4.23 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006812/0.1433, allocations: 474.3 kB / 426.2 MB, free: 3.711 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.1433, allocations: 4 kB / 426.2 MB, free: 3.707 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001255/0.1435, allocations: 23.92 kB / 426.3 MB, free: 3.684 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.052e-06/0.1435, allocations: 4 kB / 426.3 MB, free: 3.68 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.394e-05/0.1435, allocations: 0 / 426.3 MB, free: 3.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.1435, allocations: 4 kB / 426.3 MB, free: 3.676 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.1435, allocations: 0 / 426.3 MB, free: 3.676 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000464/0.1439, allocations: 296.1 kB / 426.6 MB, free: 3.367 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.955e-05/0.144, allocations: 97.14 kB / 426.6 MB, free: 3.254 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.353e-05/0.144, allocations: 8 kB / 426.7 MB, free: 3.246 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001864/0.1442, allocations: 19.91 kB / 426.7 MB, free: 3.227 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.829e-05/0.1443, allocations: 19.98 kB / 426.7 MB, free: 3.207 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.08e-05/0.1443, allocations: 7.984 kB / 426.7 MB, free: 3.199 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001323/0.1445, allocations: 148.3 kB / 426.8 MB, free: 3.055 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1445, allocations: 0 / 426.8 MB, free: 3.055 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00033/0.1448, allocations: 51.89 kB / 426.9 MB, free: 3.004 MB / 350.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.0008555/0.1457, allocations: 0.834 MB / 427.7 MB, free: 2.141 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004334/0.1461, allocations: 163.8 kB / 427.9 MB, free: 1.98 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.1461, allocations: 0 / 427.9 MB, free: 1.98 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001942/0.1463, allocations: 71.89 kB / 428 MB, free: 1.91 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000353/0.1466, allocations: 24.81 kB / 428 MB, free: 1.887 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002965/0.1496, allocations: 2.243 MB / 430.2 MB, free: 15.5 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003714/0.15, allocations: 0.7358 MB / 431 MB, free: 14.74 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001122/0.1501, allocations: 29.53 kB / 431 MB, free: 14.71 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000123/0.1502, allocations: 71.53 kB / 431.1 MB, free: 14.64 MB / 366.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1502, allocations: 0 / 431.1 MB, free: 14.64 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02803/0.1782, allocations: 4.115 MB / 435.2 MB, free: 10.6 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.336/8.514, allocations: 10.11 kB / 435.2 MB, free: 10.59 MB / 366.1 MB " [Timeout remaining time 651] (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Blocks_Examples_IntegerNetwork1.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1_res.csv","/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) [Timeout 660] "Error: Could not read variable multiSwitch1.y in file Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1_res.csv. Warning: Get data of variable multiSwitch1.y from file Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1_res.csv failed! Error: Could not read variable triggeredAdd.y in file Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1_res.csv. Warning: Get data of variable triggeredAdd.y from file Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.287057761102915]