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.0007983/0.0007983, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008888/0.0008888, allocations: 157 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.9468/0.9468, allocations: 173.3 MB / 200.4 MB, free: 9.434 MB / 186.7 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 2.304e-06/2.304e-06, allocations: 0 / 318.4 MB, free: 6.371 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.459e-05/2.689e-05, allocations: 2.281 kB / 318.4 MB, free: 6.367 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.002525/0.002552, allocations: 1.782 MB / 320.2 MB, free: 4.57 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009263/0.003478, allocations: 0.5881 MB / 320.8 MB, free: 3.98 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001139/0.003592, allocations: 15.88 kB / 320.8 MB, free: 3.965 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001451/0.003737, allocations: 27.73 kB / 320.8 MB, free: 3.938 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001455/0.003882, allocations: 31.67 kB / 320.9 MB, free: 3.906 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003423/0.004225, allocations: 87.64 kB / 321 MB, free: 3.82 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002033/0.004428, allocations: 183.3 kB / 321.1 MB, free: 3.641 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003056/0.004734, allocations: 54.98 kB / 321.2 MB, free: 3.578 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001369/0.004871, allocations: 103.7 kB / 321.3 MB, free: 3.477 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001423/0.005013, allocations: 67.78 kB / 321.4 MB, free: 3.41 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.637e-05/0.005039, allocations: 20 kB / 321.4 MB, free: 3.391 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.867e-05/0.005108, allocations: 23.98 kB / 321.4 MB, free: 3.367 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.504e-05/0.005173, allocations: 51.77 kB / 321.4 MB, free: 3.316 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.875e-05/0.005242, allocations: 51.83 kB / 321.5 MB, free: 3.266 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003341/0.005576, allocations: 203.3 kB / 321.7 MB, free: 3.066 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.084e-06/0.005578, allocations: 0 / 321.7 MB, free: 3.066 MB / 282.7 MB Notification: Performance of FrontEnd: time 6.91e-07/0.005579, allocations: 0 / 321.7 MB, free: 3.066 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.841e-06/0.005584, allocations: 0 / 321.7 MB, free: 3.066 MB / 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.0007572/0.006342, allocations: 449.2 kB / 322.1 MB, free: 2.598 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.948e-05/0.006381, allocations: 12.92 kB / 322.1 MB, free: 2.586 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.833e-05/0.006419, allocations: 50.73 kB / 322.2 MB, free: 2.527 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.05e-05/0.00646, allocations: 28.78 kB / 322.2 MB, free: 2.5 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002002/0.00666, allocations: 181.4 kB / 322.4 MB, free: 2.297 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.718e-05/0.006677, allocations: 12.38 kB / 322.4 MB, free: 2.285 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.799e-05/0.006695, allocations: 16.38 kB / 322.4 MB, free: 2.27 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003418/0.007037, allocations: 214.4 kB / 322.6 MB, free: 2.039 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.007047, allocations: 0 / 322.6 MB, free: 2.039 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.591e-05/0.007063, allocations: 12 kB / 322.6 MB, free: 2.027 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.826e-05/0.007081, allocations: 4 kB / 322.7 MB, free: 2.023 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001955/0.007276, allocations: 139.8 kB / 322.8 MB, free: 1.887 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007096/0.007986, allocations: 0.7146 MB / 323.5 MB, free: 1.117 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000362/0.008348, allocations: 178.7 kB / 323.7 MB, free: 0.9336 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.214e-05/0.00843, allocations: 60.81 kB / 323.7 MB, free: 0.8711 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.263e-05/0.008463, allocations: 3.938 kB / 323.7 MB, free: 0.8672 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001775/0.00864, allocations: 149 kB / 323.9 MB, free: 0.7031 MB / 282.7 MB Notification: Performance of pre-optimization done (n=15): time 1.373e-06/0.008642, allocations: 0 / 323.9 MB, free: 0.7031 MB / 282.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003865/0.009028, allocations: 245.4 kB / 324.1 MB, free: 468 kB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001918/0.00922, allocations: 85.48 kB / 324.2 MB, free: 364 kB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001444/0.009364, allocations: 226.8 kB / 324.4 MB, free: 128 kB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.978e-05/0.009384, allocations: 29.7 kB / 324.5 MB, free: 92 kB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.822e-05/0.009472, allocations: 144.4 kB / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.34e-05/0.009496, allocations: 35.67 kB / 324.6 MB, free: 15.91 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.981e-05/0.009556, allocations: 61.69 kB / 324.7 MB, free: 15.84 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.094e-05/0.009646, allocations: 326.8 kB / 325 MB, free: 15.51 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.243e-05/0.009739, allocations: 71.89 kB / 325.1 MB, free: 15.44 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001199/0.009859, allocations: 137.2 kB / 325.2 MB, free: 15.28 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002084/0.01007, allocations: 208.3 kB / 325.4 MB, free: 15.04 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.01007, allocations: 4 kB / 325.4 MB, free: 15.04 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002739/0.01034, allocations: 249.2 kB / 325.7 MB, free: 14.79 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.557e-05/0.01036, allocations: 8 kB / 325.7 MB, free: 14.78 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.01037, allocations: 4 kB / 325.7 MB, free: 14.78 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.186e-05/0.01038, allocations: 0 / 325.7 MB, free: 14.78 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.461e-05/0.01047, allocations: 44.47 kB / 325.7 MB, free: 14.73 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.105e-06/0.01048, allocations: 8 kB / 325.7 MB, free: 14.73 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.445e-05/0.01056, allocations: 43.75 kB / 325.8 MB, free: 14.68 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.015e-05/0.01057, allocations: 7.938 kB / 325.8 MB, free: 14.68 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 9.417e-05/0.01067, allocations: 148.2 kB / 325.9 MB, free: 14.52 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.906e-05/0.01069, allocations: 19.86 kB / 325.9 MB, free: 14.5 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001621/0.01085, allocations: 135 kB / 326.1 MB, free: 14.36 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.955e-06/0.01085, allocations: 3.984 kB / 326.1 MB, free: 14.36 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.01086, allocations: 8 kB / 326.1 MB, free: 14.35 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.01086, allocations: 7.922 kB / 326.1 MB, free: 14.34 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003655/0.01123, allocations: 429.5 kB / 326.5 MB, free: 13.88 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.01123, allocations: 0 / 326.5 MB, free: 13.88 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.206e-05/0.01128, allocations: 19.98 kB / 326.5 MB, free: 13.86 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.01129, allocations: 0 / 326.5 MB, free: 13.86 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.123e-05/0.0113, allocations: 3.938 kB / 326.5 MB, free: 13.85 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.514e-06/0.0113, allocations: 4 kB / 326.5 MB, free: 13.85 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.0113, allocations: 0 / 326.5 MB, free: 13.85 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002268/0.01153, allocations: 291.5 kB / 326.8 MB, free: 13.55 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.916e-05/0.01155, allocations: 27.78 kB / 326.9 MB, free: 13.52 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.043e-05/0.01157, allocations: 7.938 kB / 326.9 MB, free: 13.51 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.211e-05/0.01164, allocations: 15.98 kB / 326.9 MB, free: 13.5 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.649e-05/0.01169, allocations: 23.95 kB / 326.9 MB, free: 13.47 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.399e-05/0.01171, allocations: 8 kB / 326.9 MB, free: 13.46 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.321e-05/0.01179, allocations: 144.6 kB / 327.1 MB, free: 13.32 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01179, allocations: 0 / 327.1 MB, free: 13.32 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002062/0.012, allocations: 35.94 kB / 327.1 MB, free: 13.29 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.0008141/0.01281, allocations: 0.834 MB / 327.9 MB, free: 12.43 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002764/0.01309, allocations: 159.8 kB / 328.1 MB, free: 12.27 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.01309, allocations: 0 / 328.1 MB, free: 12.27 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001072/0.0132, allocations: 76.39 kB / 328.2 MB, free: 12.2 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002471/0.01344, allocations: 36.17 kB / 328.2 MB, free: 12.16 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001914/0.01536, allocations: 2.239 MB / 330.4 MB, free: 9.773 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.626e-05/0.01544, allocations: 124.9 kB / 330.5 MB, free: 9.629 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.389e-05/0.01552, allocations: 33.62 kB / 330.6 MB, free: 9.598 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.745e-05/0.01561, allocations: 68.47 kB / 330.6 MB, free: 9.531 MB / 298.7 MB Notification: Performance of SimCode: time 8.21e-07/0.01561, allocations: 0 / 330.6 MB, free: 9.531 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01712/0.03272, allocations: 4.945 MB / 335.6 MB, free: 4.734 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.606/6.639, allocations: 7.984 kB / 335.6 MB, free: 4.727 MB / 298.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","/var/lib/jenkins/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: 8.533759177662432]