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.001318/0.001318, allocations: 114 kB / 20.43 MB, free: 1.457 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.001509/0.001509, allocations: 214.2 kB / 23.74 MB, free: 4.672 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.458/1.458, allocations: 230.5 MB / 257.4 MB, free: 7.992 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.001883/0.001883, allocations: 67.83 kB / 377.8 MB, free: 3.004 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.251/0.2529, allocations: 53.41 MB / 431.2 MB, free: 6.668 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003106/0.256, allocations: 1.871 MB / 433 MB, free: 4.793 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001241/0.2572, allocations: 0.705 MB / 433.7 MB, free: 4.082 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.909e-05/0.2573, allocations: 7.938 kB / 433.8 MB, free: 4.074 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001315/0.2575, allocations: 23.67 kB / 433.8 MB, free: 4.051 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001301/0.2576, allocations: 35.72 kB / 433.8 MB, free: 4.016 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003199/0.2579, allocations: 103.7 kB / 433.9 MB, free: 3.914 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002675/0.2582, allocations: 179.4 kB / 434.1 MB, free: 3.738 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001683/0.2583, allocations: 50.92 kB / 434.1 MB, free: 3.68 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001745/0.2585, allocations: 83.66 kB / 434.2 MB, free: 3.598 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001661/0.2587, allocations: 87.59 kB / 434.3 MB, free: 3.512 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.21e-05/0.2587, allocations: 16 kB / 434.3 MB, free: 3.496 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.291e-05/0.2588, allocations: 27.98 kB / 434.4 MB, free: 3.469 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.544e-05/0.2589, allocations: 47.84 kB / 434.4 MB, free: 3.422 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.101e-05/0.259, allocations: 87.45 kB / 434.5 MB, free: 3.336 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002928/0.2593, allocations: 203.4 kB / 434.7 MB, free: 3.145 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.2593, allocations: 4 kB / 434.7 MB, free: 3.141 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2593, allocations: 0 / 434.7 MB, free: 3.141 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.631e-06/0.2593, allocations: 0 / 434.7 MB, free: 3.141 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.0009323/0.2602, allocations: 453.2 kB / 435.1 MB, free: 2.668 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.747e-05/0.2602, allocations: 12.03 kB / 435.1 MB, free: 2.656 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.937e-05/0.2603, allocations: 50.67 kB / 435.2 MB, free: 2.598 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001539/0.2605, allocations: 32.78 kB / 435.2 MB, free: 2.566 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003152/0.2608, allocations: 195.4 kB / 435.4 MB, free: 2.348 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.413e-05/0.2608, allocations: 12.38 kB / 435.4 MB, free: 2.336 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.909e-05/0.2608, allocations: 16.38 kB / 435.4 MB, free: 2.32 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004085/0.2612, allocations: 217.8 kB / 435.7 MB, free: 2.09 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.064e-05/0.2613, allocations: 0 / 435.7 MB, free: 2.09 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.869e-05/0.2613, allocations: 4 kB / 435.7 MB, free: 2.086 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.286e-05/0.2613, allocations: 8 kB / 435.7 MB, free: 2.078 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003375/0.2616, allocations: 135.8 kB / 435.8 MB, free: 1.945 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001154/0.2628, allocations: 0.7495 MB / 436.5 MB, free: 1.141 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006467/0.2634, allocations: 190.6 kB / 436.7 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001568/0.2636, allocations: 56.83 kB / 436.8 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.239e-05/0.2636, allocations: 7.938 kB / 436.8 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002886/0.2639, allocations: 144.1 kB / 436.9 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.372e-06/0.2639, allocations: 0 / 436.9 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006176/0.2645, allocations: 245.4 kB / 437.2 MB, free: 488 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.478e-05/0.2646, allocations: 85.09 kB / 437.3 MB, free: 384 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002215/0.2649, allocations: 220.2 kB / 437.5 MB, free: 156 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.142e-05/0.2649, allocations: 37.69 kB / 437.5 MB, free: 112 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001283/0.265, allocations: 144.5 kB / 437.7 MB, free: 15.96 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.151e-05/0.2651, allocations: 39.73 kB / 437.7 MB, free: 15.92 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.452e-05/0.2651, allocations: 53.66 kB / 437.7 MB, free: 15.86 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001557/0.2653, allocations: 334.6 kB / 438.1 MB, free: 15.53 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001588/0.2655, allocations: 71.95 kB / 438.1 MB, free: 15.46 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002047/0.2657, allocations: 137.1 kB / 438.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003418/0.266, allocations: 212.6 kB / 438.5 MB, free: 15.06 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.266, allocations: 4 kB / 438.5 MB, free: 15.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005125/0.2665, allocations: 253.2 kB / 438.7 MB, free: 14.8 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.906e-05/0.2665, allocations: 7.984 kB / 438.7 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.435e-06/0.2665, allocations: 4 kB / 438.7 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.852e-05/0.2666, allocations: 4 kB / 438.7 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001662/0.2667, allocations: 31.92 kB / 438.8 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.023e-05/0.2667, allocations: 4 kB / 438.8 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000173/0.2669, allocations: 48 kB / 438.8 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.886e-05/0.2669, allocations: 12 kB / 438.8 MB, free: 14.69 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.000161/0.2671, allocations: 144.2 kB / 439 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.999e-05/0.2671, allocations: 15.91 kB / 439 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002602/0.2674, allocations: 135 kB / 439.1 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.2674, allocations: 480 / 439.1 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.2674, allocations: 4 kB / 439.1 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.2674, allocations: 7.938 kB / 439.1 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006745/0.2681, allocations: 453.3 kB / 439.6 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.2681, allocations: 0 / 439.6 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001248/0.2682, allocations: 23.91 kB / 439.6 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.723e-06/0.2682, allocations: 4 kB / 439.6 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.539e-05/0.2682, allocations: 3.938 kB / 439.6 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.278e-06/0.2682, allocations: 4 kB / 439.6 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.153e-06/0.2682, allocations: 3.938 kB / 439.6 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004225/0.2687, allocations: 284.2 kB / 439.9 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.947e-05/0.2687, allocations: 15.84 kB / 439.9 MB, free: 13.53 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.823e-05/0.2687, allocations: 19.86 kB / 439.9 MB, free: 13.51 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001594/0.2689, allocations: 11.98 kB / 439.9 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.431e-05/0.269, allocations: 27.95 kB / 440 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.044e-05/0.269, allocations: 12.06 kB / 440 MB, free: 13.46 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001446/0.2691, allocations: 147.5 kB / 440.1 MB, free: 13.32 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2691, allocations: 0 / 440.1 MB, free: 13.32 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003057/0.2694, allocations: 43.89 kB / 440.2 MB, free: 13.27 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.0008581/0.2703, allocations: 0.8263 MB / 441 MB, free: 12.42 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000394/0.2707, allocations: 159.7 kB / 441.2 MB, free: 12.26 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.043e-06/0.2707, allocations: 0 / 441.2 MB, free: 12.26 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001809/0.2709, allocations: 76.39 kB / 441.2 MB, free: 12.19 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003404/0.2712, allocations: 30.48 kB / 441.3 MB, free: 12.16 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002966/0.2742, allocations: 2.244 MB / 443.5 MB, free: 9.762 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004099/0.2746, allocations: 0.7359 MB / 444.2 MB, free: 9 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001137/0.2747, allocations: 37.59 kB / 444.3 MB, free: 8.965 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001283/0.2748, allocations: 67.41 kB / 444.3 MB, free: 8.898 MB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.2748, allocations: 0 / 444.3 MB, free: 8.898 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03158/0.3064, allocations: 4.377 MB / 448.7 MB, free: 4.625 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.07/11.38, allocations: 7.5 kB / 448.7 MB, free: 4.621 MB / 350.1 MB " [Timeout remaining time 649] (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: 13.888008648998948]