Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001677/0.001677, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002491/0.002491, allocations: 213 kB / 23.73 MB, free: 4.164 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.592/1.592, allocations: 230.5 MB / 257.4 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002105/0.002105, allocations: 63.89 kB / 377.7 MB, free: 2.832 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4263/0.4284, allocations: 53.41 MB / 431.1 MB, free: 6.461 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.00346/0.4319, allocations: 1.813 MB / 432.9 MB, free: 4.645 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001438/0.4333, allocations: 0.6621 MB / 433.6 MB, free: 3.977 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001745/0.4335, allocations: 7.938 kB / 433.6 MB, free: 3.969 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000161/0.4336, allocations: 23.67 kB / 433.6 MB, free: 3.945 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001648/0.4338, allocations: 35.72 kB / 433.7 MB, free: 3.91 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003795/0.4342, allocations: 95.77 kB / 433.8 MB, free: 3.816 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002799/0.4345, allocations: 179.4 kB / 433.9 MB, free: 3.641 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001838/0.4346, allocations: 57.41 kB / 434 MB, free: 3.582 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001978/0.4348, allocations: 87.64 kB / 434.1 MB, free: 3.496 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001608/0.435, allocations: 75.61 kB / 434.2 MB, free: 3.422 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.525e-05/0.435, allocations: 16 kB / 434.2 MB, free: 3.406 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.811e-05/0.4351, allocations: 31.97 kB / 434.2 MB, free: 3.375 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.459e-05/0.4352, allocations: 47.84 kB / 434.3 MB, free: 3.328 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.262e-05/0.4353, allocations: 71.53 kB / 434.3 MB, free: 3.258 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003232/0.4356, allocations: 201.1 kB / 434.5 MB, free: 3.062 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.4356, allocations: 0 / 434.5 MB, free: 3.062 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.4356, allocations: 0 / 434.5 MB, free: 3.062 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.19e-05/0.4356, allocations: 4 kB / 434.5 MB, free: 3.059 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.001011/0.4366, allocations: 457.1 kB / 435 MB, free: 2.582 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.084e-05/0.4367, allocations: 11.98 kB / 435 MB, free: 2.57 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.91e-05/0.4368, allocations: 46.73 kB / 435 MB, free: 2.516 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001944/0.4369, allocations: 36.78 kB / 435.1 MB, free: 2.48 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003845/0.4373, allocations: 188.1 kB / 435.2 MB, free: 2.27 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.37e-05/0.4374, allocations: 16.38 kB / 435.3 MB, free: 2.254 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.579e-05/0.4374, allocations: 16.38 kB / 435.3 MB, free: 2.238 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004195/0.4378, allocations: 217.8 kB / 435.5 MB, free: 2.008 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.078e-05/0.4378, allocations: 0 / 435.5 MB, free: 2.008 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.082e-05/0.4378, allocations: 4 kB / 435.5 MB, free: 2.004 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.395e-05/0.4379, allocations: 11.94 kB / 435.5 MB, free: 1.992 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003188/0.4382, allocations: 131.9 kB / 435.6 MB, free: 1.863 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001179/0.4394, allocations: 0.7185 MB / 436.4 MB, free: 1.09 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000662/0.44, allocations: 186.6 kB / 436.5 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001579/0.4402, allocations: 60.81 kB / 436.6 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.424e-05/0.4402, allocations: 4 kB / 436.6 MB, free: 0.832 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002843/0.4405, allocations: 141 kB / 436.7 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.873e-06/0.4405, allocations: 4 kB / 436.7 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006855/0.4412, allocations: 253.2 kB / 437 MB, free: 428 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001163/0.4413, allocations: 81.11 kB / 437.1 MB, free: 328 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003115/0.4416, allocations: 227 kB / 437.3 MB, free: 92 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.73e-05/0.4417, allocations: 29.7 kB / 437.3 MB, free: 56 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001871/0.4419, allocations: 132.5 kB / 437.4 MB, free: 15.92 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.436e-05/0.4419, allocations: 43.69 kB / 437.5 MB, free: 15.88 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001194/0.442, allocations: 53.69 kB / 437.5 MB, free: 15.82 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002165/0.4423, allocations: 334.8 kB / 437.9 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001945/0.4425, allocations: 75.95 kB / 437.9 MB, free: 15.41 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002435/0.4427, allocations: 133.1 kB / 438.1 MB, free: 15.25 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004286/0.4431, allocations: 216.3 kB / 438.3 MB, free: 15.01 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.649e-06/0.4431, allocations: 0 / 438.3 MB, free: 15.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005726/0.4437, allocations: 249.6 kB / 438.5 MB, free: 14.76 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.513e-05/0.4437, allocations: 4 kB / 438.5 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.973e-05/0.4438, allocations: 4 kB / 438.5 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.889e-05/0.4438, allocations: 8.25 kB / 438.5 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001999/0.444, allocations: 39.91 kB / 438.6 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.149e-05/0.444, allocations: 4 kB / 438.6 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00023/0.4442, allocations: 35.81 kB / 438.6 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.152e-05/0.4443, allocations: 19.97 kB / 438.6 MB, free: 14.64 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.0002189/0.4445, allocations: 144.2 kB / 438.8 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.601e-05/0.4445, allocations: 23.84 kB / 438.8 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003734/0.4449, allocations: 139 kB / 438.9 MB, free: 14.33 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.466e-06/0.4449, allocations: 4 kB / 438.9 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.187e-06/0.4449, allocations: 7.922 kB / 439 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.738e-06/0.4449, allocations: 3.938 kB / 439 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008167/0.4457, allocations: 433.8 kB / 439.4 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.211e-06/0.4458, allocations: 4 kB / 439.4 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001206/0.4459, allocations: 15.98 kB / 439.4 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.929e-06/0.4459, allocations: 0 / 439.4 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.727e-05/0.4459, allocations: 7.938 kB / 439.4 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.945e-06/0.4459, allocations: 0 / 439.4 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.506e-06/0.4459, allocations: 7.984 kB / 439.4 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005142/0.4464, allocations: 292.1 kB / 439.7 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.433e-05/0.4465, allocations: 15.91 kB / 439.7 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.104e-05/0.4465, allocations: 7.938 kB / 439.7 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000177/0.4467, allocations: 19.97 kB / 439.7 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001188/0.4468, allocations: 19.97 kB / 439.8 MB, free: 13.44 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.514e-05/0.4468, allocations: 4 kB / 439.8 MB, free: 13.43 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002023/0.447, allocations: 152.6 kB / 439.9 MB, free: 13.29 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.447, allocations: 4 kB / 439.9 MB, free: 13.28 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003979/0.4474, allocations: 43.89 kB / 440 MB, free: 13.24 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.0009962/0.4484, allocations: 0.8262 MB / 440.8 MB, free: 12.38 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004558/0.4489, allocations: 163.1 kB / 440.9 MB, free: 12.23 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.533e-06/0.4489, allocations: 4 kB / 441 MB, free: 12.22 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001908/0.4491, allocations: 75.89 kB / 441 MB, free: 12.15 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003668/0.4494, allocations: 28.23 kB / 441.1 MB, free: 12.12 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004121/0.4536, allocations: 2.244 MB / 443.3 MB, free: 9.723 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002081/0.4538, allocations: 124.9 kB / 443.4 MB, free: 9.582 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001456/0.4539, allocations: 37.56 kB / 443.5 MB, free: 9.547 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000137/0.4541, allocations: 67.41 kB / 443.5 MB, free: 9.48 MB / 350.1 MB Notification: Performance of SimCode: time 8.11e-07/0.4541, allocations: 3.938 kB / 443.5 MB, free: 9.477 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03374/0.4878, allocations: 4.856 MB / 448.4 MB, free: 4.734 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.12/11.61, allocations: 0 / 448.4 MB, free: 4.734 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Blocks_Examples_IntegerNetwork1.fmu > Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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_trunk_Modelica.Blocks.Examples.IntegerNetwork1_res.csv. Warning: Get data of variable multiSwitch1.y from file Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1_res.csv failed! Error: Could not read variable triggeredAdd.y in file Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1_res.csv. Warning: Get data of variable triggeredAdd.y from file Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.439981448929757]