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.0019/0.0019, allocations: 107.5 kB / 20.44 MB, free: 1.188 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.002165/0.002165, allocations: 178.9 kB / 23.7 MB, free: 4.414 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.436/1.436, allocations: 225.7 MB / 252.5 MB, free: 12.82 MB / 206.1 MB " [Timeout remaining time 178] 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.001559/0.001559, allocations: 51.91 kB / 370.4 MB, free: 9.668 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2531/0.2546, allocations: 52.17 MB / 422.6 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003459/0.2581, allocations: 1.797 MB / 424.4 MB, free: 12.59 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001277/0.2593, allocations: 0.5883 MB / 425 MB, free: 12 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001162/0.2595, allocations: 3.938 kB / 425 MB, free: 11.99 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001542/0.2596, allocations: 31.67 kB / 425 MB, free: 11.96 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001715/0.2598, allocations: 27.67 kB / 425 MB, free: 11.93 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000371/0.2602, allocations: 91.83 kB / 425.1 MB, free: 11.84 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002887/0.2605, allocations: 179.4 kB / 425.3 MB, free: 11.67 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002028/0.2607, allocations: 46.61 kB / 425.3 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000154/0.2608, allocations: 83.62 kB / 425.4 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00018/0.261, allocations: 75.61 kB / 425.5 MB, free: 11.46 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.023e-05/0.261, allocations: 16 kB / 425.5 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.671e-05/0.2611, allocations: 20 kB / 425.5 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.361e-05/0.2612, allocations: 47.83 kB / 425.6 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.855e-05/0.2613, allocations: 71.59 kB / 425.6 MB, free: 11.31 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003307/0.2616, allocations: 205 kB / 425.8 MB, free: 11.11 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.2616, allocations: 0 / 425.8 MB, free: 11.11 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.2616, allocations: 0 / 425.8 MB, free: 11.11 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.516e-06/0.2616, allocations: 4 kB / 425.8 MB, free: 11.11 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.00105/0.2627, allocations: 441.3 kB / 426.3 MB, free: 10.64 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.898e-05/0.2627, allocations: 8.031 kB / 426.3 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.024e-05/0.2628, allocations: 50.73 kB / 426.3 MB, free: 10.58 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.777e-05/0.2629, allocations: 20.8 kB / 426.3 MB, free: 10.56 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003301/0.2632, allocations: 190.1 kB / 426.5 MB, free: 10.35 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.542e-05/0.2632, allocations: 24.06 kB / 426.6 MB, free: 10.32 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.142e-05/0.2633, allocations: 12 kB / 426.6 MB, free: 10.31 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004526/0.2637, allocations: 205.9 kB / 426.8 MB, free: 10.09 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.307e-05/0.2637, allocations: 4 kB / 426.8 MB, free: 10.09 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.104e-05/0.2638, allocations: 7.938 kB / 426.8 MB, free: 10.08 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.696e-05/0.2638, allocations: 8 kB / 426.8 MB, free: 10.07 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003296/0.2641, allocations: 135.8 kB / 426.9 MB, free: 9.938 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00118/0.2653, allocations: 0.7301 MB / 427.6 MB, free: 9.152 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006357/0.2659, allocations: 178.6 kB / 427.8 MB, free: 8.969 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002055/0.2661, allocations: 60.81 kB / 427.9 MB, free: 8.906 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.723e-05/0.2662, allocations: 0 / 427.9 MB, free: 8.906 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002996/0.2665, allocations: 160.9 kB / 428 MB, free: 8.73 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.674e-06/0.2665, allocations: 0 / 428 MB, free: 8.73 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006097/0.2671, allocations: 245.3 kB / 428.3 MB, free: 8.484 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.828e-05/0.2672, allocations: 85.05 kB / 428.4 MB, free: 8.383 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002223/0.2674, allocations: 222.9 kB / 428.6 MB, free: 8.156 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.751e-05/0.2674, allocations: 29.7 kB / 428.6 MB, free: 8.121 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001077/0.2675, allocations: 144.3 kB / 428.7 MB, free: 7.977 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.645e-05/0.2676, allocations: 35.75 kB / 428.8 MB, free: 7.941 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.235e-05/0.2677, allocations: 61.62 kB / 428.8 MB, free: 7.875 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001623/0.2678, allocations: 338.8 kB / 429.2 MB, free: 7.535 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001568/0.268, allocations: 67.95 kB / 429.2 MB, free: 7.469 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000199/0.2682, allocations: 128.5 kB / 429.4 MB, free: 7.312 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004611/0.2686, allocations: 216.3 kB / 429.6 MB, free: 7.07 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.2686, allocations: 0 / 429.6 MB, free: 7.07 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004579/0.2691, allocations: 253.8 kB / 429.8 MB, free: 6.816 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.55e-05/0.2691, allocations: 8 kB / 429.8 MB, free: 6.809 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.14e-05/0.2691, allocations: 8 kB / 429.8 MB, free: 6.801 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.78e-05/0.2691, allocations: 4 kB / 429.8 MB, free: 6.797 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001714/0.2693, allocations: 43.84 kB / 429.9 MB, free: 6.754 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.913e-06/0.2693, allocations: 4 kB / 429.9 MB, free: 6.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001659/0.2695, allocations: 27.88 kB / 429.9 MB, free: 6.723 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.325e-05/0.2695, allocations: 15.98 kB / 429.9 MB, free: 6.707 MB / 334.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.0001581/0.2697, allocations: 143.8 kB / 430.1 MB, free: 6.559 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.18e-05/0.2697, allocations: 19.86 kB / 430.1 MB, free: 6.539 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002729/0.27, allocations: 139.3 kB / 430.2 MB, free: 6.395 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.469e-05/0.27, allocations: 7.938 kB / 430.2 MB, free: 6.387 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.179e-06/0.27, allocations: 0 / 430.2 MB, free: 6.387 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.27, allocations: 3.984 kB / 430.2 MB, free: 6.383 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006883/0.2707, allocations: 433.4 kB / 430.7 MB, free: 5.91 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.2707, allocations: 0 / 430.7 MB, free: 5.91 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001178/0.2708, allocations: 27.86 kB / 430.7 MB, free: 5.883 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.2708, allocations: 0 / 430.7 MB, free: 5.883 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.566e-05/0.2708, allocations: 8 kB / 430.7 MB, free: 5.875 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.2708, allocations: 0 / 430.7 MB, free: 5.875 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.2708, allocations: 0 / 430.7 MB, free: 5.875 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004436/0.2713, allocations: 284.2 kB / 431 MB, free: 5.578 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.573e-05/0.2713, allocations: 23.78 kB / 431 MB, free: 5.555 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.788e-05/0.2714, allocations: 0 / 431 MB, free: 5.555 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001692/0.2715, allocations: 23.97 kB / 431 MB, free: 5.531 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.593e-05/0.2716, allocations: 23.91 kB / 431 MB, free: 5.508 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.899e-05/0.2716, allocations: 4 kB / 431.1 MB, free: 5.504 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001448/0.2718, allocations: 152.5 kB / 431.2 MB, free: 5.355 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2718, allocations: 0 / 431.2 MB, free: 5.355 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003082/0.2721, allocations: 43.94 kB / 431.2 MB, free: 5.312 MB / 334.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.000847/0.2729, allocations: 0.8297 MB / 432.1 MB, free: 4.457 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004011/0.2733, allocations: 160.2 kB / 432.2 MB, free: 4.301 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.2733, allocations: 0 / 432.2 MB, free: 4.301 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001901/0.2735, allocations: 80.02 kB / 432.3 MB, free: 4.223 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003493/0.2739, allocations: 32.28 kB / 432.3 MB, free: 4.191 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003105/0.277, allocations: 2.236 MB / 434.6 MB, free: 1.805 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001432/0.2771, allocations: 116.9 kB / 434.7 MB, free: 1.672 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001265/0.2772, allocations: 41.59 kB / 434.7 MB, free: 1.633 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001222/0.2774, allocations: 63.42 kB / 434.8 MB, free: 1.57 MB / 334.1 MB Notification: Performance of SimCode: time 8.91e-07/0.2774, allocations: 0 / 434.8 MB, free: 1.57 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03195/0.3093, allocations: 4.828 MB / 439.6 MB, free: 12.89 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.51/11.82, allocations: 0 / 439.6 MB, free: 12.89 MB / 350.1 MB " [Timeout remaining time 648] (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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","/var/lib/jenkins1/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: 14.451747430954129]