Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001664/0.001664, allocations: 123.4 kB / 17.79 MB, free: 5.281 MB / 14.72 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.002041/0.002041, allocations: 204.3 kB / 20.74 MB, free: 2.34 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.49/1.49, allocations: 230.6 MB / 254.1 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_1_0_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001559/0.001559, allocations: 47.92 kB / 373 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1192/0.1208, allocations: 53.33 MB / 426.3 MB, free: 4.805 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003651/0.1244, allocations: 1.846 MB / 428.2 MB, free: 2.945 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001394/0.1258, allocations: 0.705 MB / 428.9 MB, free: 2.234 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001081/0.1259, allocations: 3.938 kB / 428.9 MB, free: 2.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001438/0.1261, allocations: 31.67 kB / 428.9 MB, free: 2.199 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001433/0.1262, allocations: 31.66 kB / 428.9 MB, free: 2.168 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003309/0.1266, allocations: 95.77 kB / 429 MB, free: 2.074 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002537/0.1268, allocations: 167.5 kB / 429.2 MB, free: 1.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001808/0.127, allocations: 66.64 kB / 429.2 MB, free: 1.84 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001848/0.1272, allocations: 79.64 kB / 429.3 MB, free: 1.762 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000168/0.1273, allocations: 95.47 kB / 429.4 MB, free: 1.668 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.34e-05/0.1274, allocations: 16 kB / 429.4 MB, free: 1.652 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.905e-05/0.1275, allocations: 24 kB / 429.5 MB, free: 1.629 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.228e-05/0.1275, allocations: 51.83 kB / 429.5 MB, free: 1.578 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001042/0.1277, allocations: 79.47 kB / 429.6 MB, free: 1.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003181/0.128, allocations: 207 kB / 429.8 MB, free: 1.297 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.128, allocations: 0 / 429.8 MB, free: 1.297 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.128, allocations: 7.938 kB / 429.8 MB, free: 1.289 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.152e-06/0.128, allocations: 0 / 429.8 MB, free: 1.289 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.001045/0.129, allocations: 0.514 MB / 430.3 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.821e-05/0.1291, allocations: 8.031 kB / 430.3 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.263e-05/0.1291, allocations: 50.73 kB / 430.4 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001767/0.1293, allocations: 36.78 kB / 430.4 MB, free: 0.625 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000367/0.1297, allocations: 252.8 kB / 430.7 MB, free: 344 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.209e-05/0.1297, allocations: 16.38 kB / 430.7 MB, free: 328 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.332e-05/0.1297, allocations: 12.38 kB / 430.7 MB, free: 316 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004187/0.1301, allocations: 213.4 kB / 430.9 MB, free: 84 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.1302, allocations: 0 / 430.9 MB, free: 84 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.317e-05/0.1302, allocations: 12 kB / 430.9 MB, free: 72 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.325e-05/0.1302, allocations: 4 kB / 430.9 MB, free: 68 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2144/0.3446, allocations: 132.1 kB / 431 MB, free: 11.17 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001158/0.3458, allocations: 0.7764 MB / 431.8 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006523/0.3465, allocations: 186.2 kB / 432 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001577/0.3466, allocations: 62.44 kB / 432.1 MB, free: 10.63 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.088e-05/0.3467, allocations: 6.641 kB / 432.1 MB, free: 10.63 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002786/0.3469, allocations: 143 kB / 432.2 MB, free: 10.57 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 2.124e-06/0.3469, allocations: 3.375 kB / 432.2 MB, free: 10.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006425/0.3476, allocations: 248.8 kB / 432.4 MB, free: 10.53 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.655e-05/0.3476, allocations: 80.17 kB / 432.5 MB, free: 10.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001861/0.3478, allocations: 224.8 kB / 432.7 MB, free: 10.32 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.137e-05/0.3478, allocations: 35.02 kB / 432.8 MB, free: 10.29 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.832e-05/0.3479, allocations: 138.7 kB / 432.9 MB, free: 10.2 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.111e-05/0.3479, allocations: 42.75 kB / 433 MB, free: 10.18 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.352e-05/0.348, allocations: 53.81 kB / 433 MB, free: 10.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.839e-05/0.3481, allocations: 334.9 kB / 433.3 MB, free: 9.844 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001518/0.3482, allocations: 68.98 kB / 433.4 MB, free: 9.844 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001572/0.3484, allocations: 132.2 kB / 433.5 MB, free: 9.766 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000293/0.3487, allocations: 211.2 kB / 433.7 MB, free: 9.688 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.3487, allocations: 1.031 kB / 433.7 MB, free: 9.688 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004246/0.3491, allocations: 255.8 kB / 434 MB, free: 9.645 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.785e-05/0.3491, allocations: 6.781 kB / 434 MB, free: 9.645 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.3491, allocations: 2.531 kB / 434 MB, free: 9.645 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.367e-05/0.3491, allocations: 3.375 kB / 434 MB, free: 9.645 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001766/0.3493, allocations: 40.42 kB / 434 MB, free: 9.645 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.163e-05/0.3493, allocations: 6.734 kB / 434 MB, free: 9.645 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001736/0.3495, allocations: 32.53 kB / 434.1 MB, free: 9.641 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.982e-05/0.3495, allocations: 11.59 kB / 434.1 MB, free: 9.641 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.0001269/0.3496, allocations: 154.1 kB / 434.2 MB, free: 9.523 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.197e-05/0.3497, allocations: 20.7 kB / 434.3 MB, free: 9.512 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002443/0.3499, allocations: 135 kB / 434.4 MB, free: 9.469 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.518e-06/0.3499, allocations: 4 kB / 434.4 MB, free: 9.469 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.3499, allocations: 1.062 kB / 434.4 MB, free: 9.469 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.793e-06/0.3499, allocations: 4.781 kB / 434.4 MB, free: 9.469 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005545/0.3505, allocations: 474.5 kB / 434.9 MB, free: 9.172 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/0.3505, allocations: 1.219 kB / 434.9 MB, free: 9.172 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001135/0.3506, allocations: 21.28 kB / 434.9 MB, free: 9.172 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.3506, allocations: 3.875 kB / 434.9 MB, free: 9.172 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.595e-05/0.3506, allocations: 8.969 kB / 434.9 MB, free: 9.172 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.827e-06/0.3506, allocations: 2.094 kB / 434.9 MB, free: 9.172 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.3506, allocations: 0 / 434.9 MB, free: 9.172 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003981/0.351, allocations: 296 kB / 435.2 MB, free: 9.016 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.382e-05/0.3511, allocations: 99.39 kB / 435.3 MB, free: 8.914 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.056e-05/0.3511, allocations: 4.719 kB / 435.3 MB, free: 8.914 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001685/0.3513, allocations: 16.89 kB / 435.3 MB, free: 8.914 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.166e-05/0.3514, allocations: 25.22 kB / 435.3 MB, free: 8.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.9e-05/0.3514, allocations: 6.031 kB / 435.3 MB, free: 8.91 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001077/0.3515, allocations: 146.4 kB / 435.5 MB, free: 8.836 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3515, allocations: 0 / 435.5 MB, free: 8.836 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003216/0.3518, allocations: 44.55 kB / 435.5 MB, free: 8.828 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.0006231/0.3524, allocations: 0.8335 MB / 436.4 MB, free: 8.152 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000421/0.3529, allocations: 167.9 kB / 436.5 MB, free: 8.148 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.3529, allocations: 0 / 436.5 MB, free: 8.148 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001947/0.3531, allocations: 77.53 kB / 436.6 MB, free: 8.145 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003665/0.3534, allocations: 36.98 kB / 436.6 MB, free: 8.141 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002537/0.356, allocations: 2.239 MB / 438.9 MB, free: 6.508 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001777/0.3561, allocations: 0.731 MB / 439.6 MB, free: 5.812 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001131/0.3562, allocations: 39.88 kB / 439.6 MB, free: 5.809 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001122/0.3564, allocations: 66.08 kB / 439.7 MB, free: 5.762 MB / 350.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3564, allocations: 1.188 kB / 439.7 MB, free: 5.762 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0276/0.384, allocations: 4.142 MB / 443.8 MB, free: 5.223 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.003/8.387, allocations: 12.3 kB / 443.9 MB, free: 5.215 MB / 350.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Blocks_Examples_IntegerNetwork1.fmu > Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.1.0_Modelica.Blocks.Examples.IntegerNetwork1_res.csv. Warning: Get data of variable multiSwitch1.y from file Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1_res.csv failed! Error: Could not read variable triggeredAdd.y in file Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1_res.csv. Warning: Get data of variable triggeredAdd.y from file Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.987909645002219]