Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001521/0.001521, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001897/0.001897, allocations: 207.7 kB / 23.73 MB, free: 4.523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.444/1.444, allocations: 230.6 MB / 257.5 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00155/0.00155, allocations: 47.94 kB / 377.7 MB, free: 3.062 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.272/0.2736, allocations: 53.38 MB / 431.1 MB, free: 6.629 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003256/0.2769, allocations: 1.816 MB / 432.9 MB, free: 4.812 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001395/0.2782, allocations: 0.6505 MB / 433.5 MB, free: 4.156 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001178/0.2784, allocations: 11.88 kB / 433.6 MB, free: 4.145 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000158/0.2785, allocations: 31.61 kB / 433.6 MB, free: 4.113 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001462/0.2787, allocations: 35.72 kB / 433.6 MB, free: 4.078 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00036/0.279, allocations: 95.77 kB / 433.7 MB, free: 3.984 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002462/0.2793, allocations: 171.5 kB / 433.9 MB, free: 3.816 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000193/0.2795, allocations: 54.92 kB / 433.9 MB, free: 3.754 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001757/0.2796, allocations: 83.66 kB / 434 MB, free: 3.672 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001589/0.2798, allocations: 91.53 kB / 434.1 MB, free: 3.582 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.495e-05/0.2798, allocations: 16 kB / 434.1 MB, free: 3.566 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.891e-05/0.2799, allocations: 27.98 kB / 434.2 MB, free: 3.539 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.014e-05/0.28, allocations: 47.84 kB / 434.2 MB, free: 3.492 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.278e-05/0.2801, allocations: 67.58 kB / 434.3 MB, free: 3.426 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003046/0.2804, allocations: 207.5 kB / 434.5 MB, free: 3.23 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.2804, allocations: 0 / 434.5 MB, free: 3.23 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.2804, allocations: 0 / 434.5 MB, free: 3.23 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.034e-05/0.2804, allocations: 0 / 434.5 MB, free: 3.23 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.0009164/0.2813, allocations: 453.2 kB / 434.9 MB, free: 2.758 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.931e-05/0.2814, allocations: 12.03 kB / 434.9 MB, free: 2.746 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.845e-05/0.2814, allocations: 50.73 kB / 435 MB, free: 2.688 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001535/0.2816, allocations: 36.78 kB / 435 MB, free: 2.652 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003154/0.2819, allocations: 191.8 kB / 435.2 MB, free: 2.438 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.26e-05/0.2819, allocations: 16.38 kB / 435.2 MB, free: 2.422 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.363e-05/0.2819, allocations: 16.38 kB / 435.2 MB, free: 2.406 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004389/0.2824, allocations: 218.4 kB / 435.4 MB, free: 2.176 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.231e-05/0.2824, allocations: 0 / 435.4 MB, free: 2.176 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.059e-05/0.2824, allocations: 4 kB / 435.4 MB, free: 2.172 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.998e-05/0.2824, allocations: 8 kB / 435.5 MB, free: 2.164 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003266/0.2828, allocations: 139.8 kB / 435.6 MB, free: 2.027 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001094/0.2839, allocations: 0.7185 MB / 436.3 MB, free: 1.254 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006246/0.2845, allocations: 190.6 kB / 436.5 MB, free: 1.059 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001488/0.2846, allocations: 56.77 kB / 436.5 MB, free: 1 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.865e-05/0.2847, allocations: 7.984 kB / 436.6 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002754/0.2849, allocations: 137 kB / 436.7 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.453e-06/0.2849, allocations: 0 / 436.7 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006434/0.2856, allocations: 245.3 kB / 436.9 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.831e-05/0.2857, allocations: 85.11 kB / 437 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002289/0.2859, allocations: 234.9 kB / 437.2 MB, free: 260 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.902e-05/0.2859, allocations: 33.7 kB / 437.3 MB, free: 220 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00011/0.286, allocations: 140.4 kB / 437.4 MB, free: 76 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.7e-05/0.2861, allocations: 35.69 kB / 437.4 MB, free: 40 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001099/0.2862, allocations: 61.69 kB / 437.5 MB, free: 15.97 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001556/0.2863, allocations: 334.8 kB / 437.8 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001715/0.2865, allocations: 67.95 kB / 437.9 MB, free: 15.57 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002021/0.2867, allocations: 124.5 kB / 438 MB, free: 15.42 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003841/0.2871, allocations: 216.3 kB / 438.2 MB, free: 15.18 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.2871, allocations: 0 / 438.2 MB, free: 15.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005007/0.2876, allocations: 253.2 kB / 438.5 MB, free: 14.92 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.262e-05/0.2876, allocations: 8 kB / 438.5 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.2876, allocations: 0 / 438.5 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.968e-05/0.2876, allocations: 7.938 kB / 438.5 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000187/0.2878, allocations: 43.91 kB / 438.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.938e-06/0.2878, allocations: 4 kB / 438.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001775/0.288, allocations: 36.06 kB / 438.6 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.917e-05/0.288, allocations: 8 kB / 438.6 MB, free: 14.82 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.000184/0.2882, allocations: 155.7 kB / 438.7 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.961e-05/0.2883, allocations: 20.17 kB / 438.8 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002747/0.2885, allocations: 139.4 kB / 438.9 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.2885, allocations: 96 / 438.9 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.244e-06/0.2885, allocations: 7.938 kB / 438.9 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.062e-05/0.2886, allocations: 7.922 kB / 438.9 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006552/0.2892, allocations: 429.5 kB / 439.3 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.2892, allocations: 0 / 439.3 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001247/0.2893, allocations: 23.92 kB / 439.4 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.275e-06/0.2893, allocations: 0 / 439.4 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.823e-05/0.2894, allocations: 7.938 kB / 439.4 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.426e-06/0.2894, allocations: 4 kB / 439.4 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.2894, allocations: 0 / 439.4 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004364/0.2898, allocations: 288.1 kB / 439.6 MB, free: 13.67 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.05e-05/0.2898, allocations: 15.91 kB / 439.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.039e-05/0.2899, allocations: 7.938 kB / 439.7 MB, free: 13.65 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001982/0.2901, allocations: 23.97 kB / 439.7 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.433e-05/0.2901, allocations: 19.91 kB / 439.7 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.963e-05/0.2902, allocations: 8 kB / 439.7 MB, free: 13.6 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001434/0.2903, allocations: 152.6 kB / 439.9 MB, free: 13.45 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.2903, allocations: 0 / 439.9 MB, free: 13.45 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000312/0.2906, allocations: 47.89 kB / 439.9 MB, free: 13.4 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.0008166/0.2914, allocations: 0.827 MB / 440.7 MB, free: 12.55 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004043/0.2918, allocations: 163.8 kB / 440.9 MB, free: 12.39 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.2918, allocations: 0 / 440.9 MB, free: 12.39 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001802/0.292, allocations: 67.91 kB / 441 MB, free: 12.32 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003561/0.2924, allocations: 40.67 kB / 441 MB, free: 12.28 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002847/0.2952, allocations: 2.24 MB / 443.2 MB, free: 9.887 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001309/0.2953, allocations: 132.9 kB / 443.4 MB, free: 9.738 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001039/0.2954, allocations: 33.62 kB / 443.4 MB, free: 9.707 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001153/0.2956, allocations: 67.41 kB / 443.5 MB, free: 9.641 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.2956, allocations: 0 / 443.5 MB, free: 9.641 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03581/0.3314, allocations: 4.879 MB / 448.4 MB, free: 4.918 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.14/11.47, allocations: 5.859 kB / 448.4 MB, free: 4.918 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Blocks_Examples_IntegerNetwork1.fmu > Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.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.1.0_Modelica.Blocks.Examples.IntegerNetwork1_res.csv. Warning: Get data of variable multiSwitch1.y from file Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1_res.csv failed! Error: Could not read variable triggeredAdd.y in file Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1_res.csv. Warning: Get data of variable triggeredAdd.y from file Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.999228629982099]