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.0009442/0.0009442, allocations: 83.69 kB / 20.67 MB, free: 3.887 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.0009959/0.0009959, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.9159/0.9159, allocations: 177.1 MB / 204.3 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] 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 2.976e-06/2.976e-06, allocations: 0 / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.488e-05/2.785e-05, allocations: 2.281 kB / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003215/0.003243, allocations: 1.817 MB / 326.4 MB, free: 14.11 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001021/0.004264, allocations: 0.6698 MB / 327 MB, free: 13.44 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001085/0.004372, allocations: 3.938 kB / 327 MB, free: 13.43 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001266/0.004499, allocations: 35.61 kB / 327.1 MB, free: 13.4 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001576/0.004656, allocations: 31.72 kB / 327.1 MB, free: 13.37 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003447/0.005001, allocations: 99.64 kB / 327.2 MB, free: 13.27 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000209/0.00521, allocations: 179.4 kB / 327.4 MB, free: 13.09 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001572/0.005367, allocations: 50.98 kB / 327.4 MB, free: 13.04 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002194/0.005587, allocations: 107.7 kB / 327.5 MB, free: 12.93 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001523/0.005739, allocations: 75.7 kB / 327.6 MB, free: 12.86 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.845e-05/0.005767, allocations: 16 kB / 327.6 MB, free: 12.84 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.534e-05/0.005853, allocations: 27.98 kB / 327.7 MB, free: 12.81 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.328e-05/0.005916, allocations: 47.77 kB / 327.7 MB, free: 12.77 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.238e-05/0.005978, allocations: 51.83 kB / 327.8 MB, free: 12.71 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002749/0.006253, allocations: 207.3 kB / 328 MB, free: 12.51 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.006257, allocations: 7.938 kB / 328 MB, free: 12.5 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.006258, allocations: 0 / 328 MB, free: 12.5 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.033e-06/0.006265, allocations: 4 kB / 328 MB, free: 12.5 MB / 298.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.0007765/0.007042, allocations: 448.9 kB / 328.4 MB, free: 12.04 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.495e-05/0.007097, allocations: 8.031 kB / 328.4 MB, free: 12.03 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.161e-05/0.007148, allocations: 50.73 kB / 328.5 MB, free: 11.97 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001269/0.007275, allocations: 32.78 kB / 328.5 MB, free: 11.94 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002605/0.007536, allocations: 195 kB / 328.7 MB, free: 11.72 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.202e-05/0.007558, allocations: 12.38 kB / 328.7 MB, free: 11.71 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.048e-05/0.007578, allocations: 12.38 kB / 328.7 MB, free: 11.7 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003074/0.007886, allocations: 206.5 kB / 328.9 MB, free: 11.48 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/0.007897, allocations: 4.125 kB / 328.9 MB, free: 11.47 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.709e-05/0.007914, allocations: 12.12 kB / 328.9 MB, free: 11.46 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.12e-05/0.007935, allocations: 8 kB / 328.9 MB, free: 11.45 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002143/0.00815, allocations: 143.8 kB / 329.1 MB, free: 11.31 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007616/0.008911, allocations: 0.7146 MB / 329.8 MB, free: 10.54 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004012/0.009312, allocations: 182.6 kB / 330 MB, free: 10.36 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.666e-05/0.009399, allocations: 64.81 kB / 330 MB, free: 10.29 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.22e-05/0.009431, allocations: 3.984 kB / 330 MB, free: 10.29 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001935/0.009625, allocations: 143.7 kB / 330.2 MB, free: 10.13 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.512e-06/0.009626, allocations: 3.938 kB / 330.2 MB, free: 10.12 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003981/0.01002, allocations: 249.3 kB / 330.4 MB, free: 9.875 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.362e-05/0.01008, allocations: 81.11 kB / 330.5 MB, free: 9.777 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001766/0.01025, allocations: 231.1 kB / 330.7 MB, free: 9.543 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.208e-05/0.01028, allocations: 33.7 kB / 330.8 MB, free: 9.504 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.822e-05/0.01038, allocations: 144.3 kB / 330.9 MB, free: 9.359 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.887e-05/0.0104, allocations: 35.7 kB / 330.9 MB, free: 9.324 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.31e-05/0.01049, allocations: 61.69 kB / 331 MB, free: 9.258 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001242/0.01061, allocations: 334.8 kB / 331.3 MB, free: 8.922 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001082/0.01072, allocations: 63.95 kB / 331.4 MB, free: 8.859 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001336/0.01085, allocations: 132.5 kB / 331.5 MB, free: 8.699 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002495/0.0111, allocations: 212.4 kB / 331.7 MB, free: 8.461 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.01111, allocations: 0 / 331.7 MB, free: 8.461 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003197/0.01142, allocations: 253.2 kB / 332 MB, free: 8.207 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.894e-05/0.01144, allocations: 8 kB / 332 MB, free: 8.199 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.073e-06/0.01145, allocations: 320 / 332 MB, free: 8.199 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.647e-05/0.01147, allocations: 4 kB / 332 MB, free: 8.195 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000109/0.01158, allocations: 43.91 kB / 332 MB, free: 8.152 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.245e-05/0.01159, allocations: 15.92 kB / 332 MB, free: 8.137 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.307e-05/0.01168, allocations: 28.12 kB / 332.1 MB, free: 8.109 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.3e-05/0.01169, allocations: 15.98 kB / 332.1 MB, free: 8.094 MB / 298.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 0.0001077/0.0118, allocations: 139.8 kB / 332.2 MB, free: 7.949 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.328e-05/0.01183, allocations: 27.84 kB / 332.2 MB, free: 7.922 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001862/0.01201, allocations: 131.1 kB / 332.4 MB, free: 7.793 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.01202, allocations: 3.984 kB / 332.4 MB, free: 7.789 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-06/0.01202, allocations: 0 / 332.4 MB, free: 7.789 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/0.01203, allocations: 4 kB / 332.4 MB, free: 7.785 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004152/0.01244, allocations: 441.7 kB / 332.8 MB, free: 7.305 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.01244, allocations: 4 kB / 332.8 MB, free: 7.301 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.74e-05/0.0125, allocations: 15.98 kB / 332.8 MB, free: 7.285 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.49e-06/0.01251, allocations: 4 kB / 332.8 MB, free: 7.281 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.124e-05/0.01252, allocations: 4 kB / 332.8 MB, free: 7.277 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.486e-06/0.01252, allocations: 3.984 kB / 332.8 MB, free: 7.273 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.01252, allocations: 4 kB / 332.9 MB, free: 7.27 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002506/0.01277, allocations: 288 kB / 333.1 MB, free: 6.969 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.834e-05/0.01279, allocations: 15.91 kB / 333.1 MB, free: 6.953 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.212e-05/0.01281, allocations: 4 kB / 333.2 MB, free: 6.949 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.605e-05/0.0129, allocations: 19.97 kB / 333.2 MB, free: 6.93 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.336e-05/0.01296, allocations: 27.91 kB / 333.2 MB, free: 6.902 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.528e-05/0.01298, allocations: 4 kB / 333.2 MB, free: 6.898 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.345e-05/0.01307, allocations: 156.6 kB / 333.4 MB, free: 6.746 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01307, allocations: 0 / 333.4 MB, free: 6.746 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002307/0.0133, allocations: 39.89 kB / 333.4 MB, free: 6.707 MB / 298.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.0005554/0.01386, allocations: 0.8303 MB / 334.2 MB, free: 5.848 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000274/0.01413, allocations: 163.7 kB / 334.4 MB, free: 5.688 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.01413, allocations: 0 / 334.4 MB, free: 5.688 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001138/0.01425, allocations: 75.89 kB / 334.5 MB, free: 5.613 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002672/0.01452, allocations: 39.73 kB / 334.5 MB, free: 5.578 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001897/0.01641, allocations: 2.252 MB / 336.7 MB, free: 3.172 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.688e-05/0.0165, allocations: 120.9 kB / 336.9 MB, free: 3.035 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 8.15e-05/0.01658, allocations: 33.61 kB / 336.9 MB, free: 3.004 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.169e-05/0.01666, allocations: 72.41 kB / 337 MB, free: 2.934 MB / 298.7 MB Notification: Performance of SimCode: time 6.11e-07/0.01666, allocations: 288 / 337 MB, free: 2.934 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02106/0.03772, allocations: 4.978 MB / 341.9 MB, free: 14.09 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.05/7.088, allocations: 10.27 kB / 342 MB, free: 14.09 MB / 314.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","/var/lib/jenkins/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: 8.94500912539661]