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.001329/0.001329, allocations: 120.8 kB / 17.74 MB, free: 5.332 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.001284/0.001284, allocations: 186.9 kB / 20.68 MB, free: 2.402 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.358/1.358, allocations: 222.9 MB / 246.4 MB, free: 4.203 MB / 190.1 MB " [Timeout remaining time 179] 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.001566/0.001566, allocations: 47.92 kB / 357.5 MB, free: 9.004 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09428/0.09586, allocations: 49.44 MB / 406.9 MB, free: 7.516 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003095/0.09899, allocations: 1.822 MB / 408.7 MB, free: 5.688 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001205/0.1002, allocations: 0.6193 MB / 409.4 MB, free: 5.066 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001201/0.1004, allocations: 4 kB / 409.4 MB, free: 5.062 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001449/0.1005, allocations: 27.67 kB / 409.4 MB, free: 5.035 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001305/0.1007, allocations: 31.72 kB / 409.4 MB, free: 5.004 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003022/0.101, allocations: 91.78 kB / 409.5 MB, free: 4.914 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000257/0.1013, allocations: 171.4 kB / 409.7 MB, free: 4.746 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000212/0.1015, allocations: 81.16 kB / 409.8 MB, free: 4.66 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001635/0.1016, allocations: 71.64 kB / 409.8 MB, free: 4.59 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001742/0.1018, allocations: 83.61 kB / 409.9 MB, free: 4.508 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.651e-05/0.1019, allocations: 16 kB / 409.9 MB, free: 4.492 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.226e-05/0.102, allocations: 23.98 kB / 410 MB, free: 4.469 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.512e-05/0.102, allocations: 43.84 kB / 410 MB, free: 4.426 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001136/0.1022, allocations: 91.45 kB / 410.1 MB, free: 4.336 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003031/0.1025, allocations: 199.1 kB / 410.3 MB, free: 4.141 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.1025, allocations: 0 / 410.3 MB, free: 4.141 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1025, allocations: 4 kB / 410.3 MB, free: 4.137 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.091e-06/0.1025, allocations: 0 / 410.3 MB, free: 4.137 MB / 334.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.001006/0.1035, allocations: 0.5062 MB / 410.8 MB, free: 3.582 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.419e-05/0.1036, allocations: 12.03 kB / 410.8 MB, free: 3.57 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.291e-05/0.1036, allocations: 50.67 kB / 410.9 MB, free: 3.512 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.828e-05/0.1037, allocations: 24.8 kB / 410.9 MB, free: 3.488 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003334/0.104, allocations: 256.4 kB / 411.1 MB, free: 3.199 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.609e-05/0.1041, allocations: 16.12 kB / 411.1 MB, free: 3.184 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.195e-05/0.1041, allocations: 16 kB / 411.2 MB, free: 3.168 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004036/0.1045, allocations: 213.6 kB / 411.4 MB, free: 2.938 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.149e-05/0.1046, allocations: 4 kB / 411.4 MB, free: 2.934 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.838e-05/0.1046, allocations: 4 kB / 411.4 MB, free: 2.93 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.312e-05/0.1046, allocations: 8 kB / 411.4 MB, free: 2.922 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003323/0.1049, allocations: 139.7 kB / 411.5 MB, free: 2.785 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001119/0.1061, allocations: 0.7856 MB / 412.3 MB, free: 1.938 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006526/0.1067, allocations: 186.7 kB / 412.5 MB, free: 1.746 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001603/0.1069, allocations: 60.83 kB / 412.5 MB, free: 1.684 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.368e-05/0.107, allocations: 11.92 kB / 412.6 MB, free: 1.672 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003076/0.1073, allocations: 145 kB / 412.7 MB, free: 1.512 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.854e-06/0.1073, allocations: 7.938 kB / 412.7 MB, free: 1.504 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006519/0.1079, allocations: 241.4 kB / 412.9 MB, free: 1.262 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.929e-05/0.108, allocations: 92.98 kB / 413 MB, free: 1.152 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002411/0.1083, allocations: 218.9 kB / 413.2 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.516e-05/0.1083, allocations: 29.7 kB / 413.3 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001115/0.1084, allocations: 136.5 kB / 413.4 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.935e-05/0.1085, allocations: 35.73 kB / 413.4 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001056/0.1086, allocations: 65.64 kB / 413.5 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001638/0.1088, allocations: 326.8 kB / 413.8 MB, free: 328 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001729/0.109, allocations: 67.95 kB / 413.9 MB, free: 260 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002207/0.1092, allocations: 137.2 kB / 414 MB, free: 92 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003853/0.1096, allocations: 216.3 kB / 414.2 MB, free: 15.85 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.1096, allocations: 0 / 414.2 MB, free: 15.85 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005128/0.1101, allocations: 253.5 kB / 414.5 MB, free: 15.59 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/0.1101, allocations: 4 kB / 414.5 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.1101, allocations: 4.375 kB / 414.5 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.053e-05/0.1102, allocations: 4 kB / 414.5 MB, free: 15.58 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001779/0.1104, allocations: 39.86 kB / 414.5 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.084e-05/0.1104, allocations: 4 kB / 414.5 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001878/0.1106, allocations: 43.75 kB / 414.6 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.85e-05/0.1106, allocations: 8 kB / 414.6 MB, free: 15.49 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.0001805/0.1108, allocations: 156.4 kB / 414.7 MB, free: 15.33 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.575e-05/0.1108, allocations: 15.91 kB / 414.8 MB, free: 15.31 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002942/0.1111, allocations: 138.9 kB / 414.9 MB, free: 15.17 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.894e-06/0.1111, allocations: 3.938 kB / 414.9 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.096e-06/0.1112, allocations: 4 kB / 414.9 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.024e-06/0.1112, allocations: 3.984 kB / 414.9 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000694/0.1119, allocations: 474.3 kB / 415.4 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.1119, allocations: 4.312 kB / 415.4 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001254/0.112, allocations: 19.92 kB / 415.4 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.829e-06/0.112, allocations: 7.938 kB / 415.4 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.479e-05/0.1121, allocations: 4 kB / 415.4 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.1121, allocations: 0 / 415.4 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.1121, allocations: 0 / 415.4 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004963/0.1126, allocations: 292.1 kB / 415.7 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.017e-05/0.1126, allocations: 96.94 kB / 415.8 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.142e-05/0.1127, allocations: 4 kB / 415.8 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001653/0.1129, allocations: 15.98 kB / 415.8 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.648e-05/0.1129, allocations: 23.97 kB / 415.8 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.202e-05/0.113, allocations: 7.984 kB / 415.8 MB, free: 14.13 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001411/0.1131, allocations: 148.4 kB / 416 MB, free: 13.99 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.874e-06/0.1131, allocations: 0 / 416 MB, free: 13.99 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002946/0.1134, allocations: 51.83 kB / 416 MB, free: 13.94 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.0008457/0.1143, allocations: 0.8324 MB / 416.9 MB, free: 13.08 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004483/0.1147, allocations: 175.7 kB / 417 MB, free: 12.91 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.1148, allocations: 0 / 417 MB, free: 12.91 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001893/0.115, allocations: 79.89 kB / 417.1 MB, free: 12.83 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003623/0.1153, allocations: 24.48 kB / 417.1 MB, free: 12.8 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003073/0.1184, allocations: 2.241 MB / 419.4 MB, free: 10.42 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004017/0.1188, allocations: 0.7397 MB / 420.1 MB, free: 9.652 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000127/0.119, allocations: 29.53 kB / 420.2 MB, free: 9.621 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001224/0.1191, allocations: 67.41 kB / 420.2 MB, free: 9.555 MB / 350.1 MB Notification: Performance of SimCode: time 7.52e-07/0.1191, allocations: 0 / 420.2 MB, free: 9.555 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02466/0.1438, allocations: 4.094 MB / 424.3 MB, free: 5.547 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.1/8.244, allocations: 18.64 kB / 424.3 MB, free: 5.531 MB / 350.1 MB " [Timeout remaining time 652] (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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 10.794524439959787]