Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.002053/0.002053, allocations: 112.4 kB / 21.18 MB, free: 0.7148 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.002466/0.002466, allocations: 212.7 kB / 24.49 MB, free: 4.066 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.462/1.462, allocations: 207.6 MB / 235.3 MB, free: 10.01 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00184/0.00184, allocations: 51.92 kB / 347.2 MB, free: 10.05 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2633/0.2652, allocations: 49.16 MB / 396.3 MB, free: 8.984 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.002919/0.2681, allocations: 1.839 MB / 398.2 MB, free: 7.734 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001236/0.2693, allocations: 0.6761 MB / 398.9 MB, free: 7.262 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001136/0.2694, allocations: 7.375 kB / 398.9 MB, free: 7.258 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001576/0.2696, allocations: 31.47 kB / 398.9 MB, free: 7.234 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001728/0.2698, allocations: 35.64 kB / 398.9 MB, free: 7.207 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003169/0.2701, allocations: 82.72 kB / 399 MB, free: 7.164 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002233/0.2703, allocations: 177.4 kB / 399.2 MB, free: 7.082 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001655/0.2705, allocations: 58.53 kB / 399.2 MB, free: 7.051 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001379/0.2706, allocations: 77.78 kB / 399.3 MB, free: 7.012 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001594/0.2708, allocations: 85.58 kB / 399.4 MB, free: 6.969 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.529e-05/0.2708, allocations: 14.97 kB / 399.4 MB, free: 6.969 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.038e-05/0.2709, allocations: 24.88 kB / 399.4 MB, free: 6.965 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.808e-05/0.271, allocations: 42.31 kB / 399.5 MB, free: 6.941 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.995e-05/0.271, allocations: 89.17 kB / 399.6 MB, free: 6.879 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003076/0.2713, allocations: 204.2 kB / 399.8 MB, free: 6.785 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.149e-06/0.2713, allocations: 0.6562 kB / 399.8 MB, free: 6.785 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.2713, allocations: 0 / 399.8 MB, free: 6.785 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.055e-06/0.2714, allocations: 1.781 kB / 399.8 MB, free: 6.785 MB / 318.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.0008688/0.2722, allocations: 442.1 kB / 400.2 MB, free: 6.43 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.358e-05/0.2723, allocations: 18.19 kB / 400.2 MB, free: 6.422 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.537e-05/0.2723, allocations: 47.2 kB / 400.3 MB, free: 6.375 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.691e-05/0.2724, allocations: 28.61 kB / 400.3 MB, free: 6.359 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002516/0.2726, allocations: 182.9 kB / 400.5 MB, free: 6.195 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.224e-05/0.2727, allocations: 11.72 kB / 400.5 MB, free: 6.191 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.688e-05/0.2727, allocations: 19.88 kB / 400.5 MB, free: 6.184 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003744/0.2731, allocations: 212.3 kB / 400.7 MB, free: 6.066 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.288e-05/0.2731, allocations: 4 kB / 400.7 MB, free: 6.062 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.021e-05/0.2731, allocations: 7.219 kB / 400.7 MB, free: 6.059 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.069e-05/0.2731, allocations: 10.44 kB / 400.7 MB, free: 6.055 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003208/0.2734, allocations: 141.8 kB / 400.9 MB, free: 6.016 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009553/0.2744, allocations: 0.7458 MB / 401.6 MB, free: 5.422 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006162/0.275, allocations: 189.5 kB / 401.8 MB, free: 5.355 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001548/0.2752, allocations: 65.03 kB / 401.9 MB, free: 5.328 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.259e-05/0.2752, allocations: 2.344 kB / 401.9 MB, free: 5.328 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002754/0.2755, allocations: 151.3 kB / 402 MB, free: 5.234 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.513e-06/0.2755, allocations: 4 kB / 402 MB, free: 5.23 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005877/0.2761, allocations: 238.5 kB / 402.2 MB, free: 5.145 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.678e-05/0.2761, allocations: 84.03 kB / 402.3 MB, free: 5.047 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002022/0.2763, allocations: 221.3 kB / 402.5 MB, free: 4.898 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.992e-05/0.2763, allocations: 32.67 kB / 402.6 MB, free: 4.863 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.227e-05/0.2764, allocations: 144.4 kB / 402.7 MB, free: 4.734 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.996e-05/0.2764, allocations: 36.27 kB / 402.8 MB, free: 4.707 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.086e-05/0.2765, allocations: 55.77 kB / 402.8 MB, free: 4.676 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.204e-05/0.2766, allocations: 333.2 kB / 403.1 MB, free: 4.352 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000168/0.2768, allocations: 73 kB / 403.2 MB, free: 4.332 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001616/0.2769, allocations: 131.4 kB / 403.3 MB, free: 4.23 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002923/0.2772, allocations: 208.6 kB / 403.5 MB, free: 4.098 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.015e-06/0.2772, allocations: 1.156 kB / 403.5 MB, free: 4.098 MB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004357/0.2776, allocations: 255.8 kB / 403.8 MB, free: 3.984 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.625e-05/0.2777, allocations: 6.156 kB / 403.8 MB, free: 3.984 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.2777, allocations: 2.125 kB / 403.8 MB, free: 3.984 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.727e-05/0.2777, allocations: 3.719 kB / 403.8 MB, free: 3.984 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001752/0.2779, allocations: 37.98 kB / 403.8 MB, free: 3.98 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.966e-06/0.2779, allocations: 8.156 kB / 403.8 MB, free: 3.977 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001702/0.278, allocations: 42.31 kB / 403.9 MB, free: 3.953 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.833e-05/0.2781, allocations: 13.3 kB / 403.9 MB, free: 3.949 MB / 318.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.0001138/0.2782, allocations: 151.1 kB / 404 MB, free: 3.809 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.022e-05/0.2782, allocations: 16.64 kB / 404.1 MB, free: 3.801 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002382/0.2784, allocations: 129.6 kB / 404.2 MB, free: 3.727 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.12e-06/0.2784, allocations: 2.734 kB / 404.2 MB, free: 3.727 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.2785, allocations: 1.344 kB / 404.2 MB, free: 3.727 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.2785, allocations: 5.703 kB / 404.2 MB, free: 3.723 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005565/0.279, allocations: 450.2 kB / 404.6 MB, free: 3.391 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.279, allocations: 5.062 kB / 404.6 MB, free: 3.387 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001199/0.2791, allocations: 22.66 kB / 404.7 MB, free: 3.383 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.394e-06/0.2791, allocations: 1.25 kB / 404.7 MB, free: 3.383 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.448e-05/0.2792, allocations: 6.156 kB / 404.7 MB, free: 3.379 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.268e-06/0.2792, allocations: 8.359 kB / 404.7 MB, free: 3.375 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.2792, allocations: 1.25 kB / 404.7 MB, free: 3.375 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000345/0.2795, allocations: 285.4 kB / 405 MB, free: 3.188 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.712e-05/0.2795, allocations: 21.73 kB / 405 MB, free: 3.172 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.271e-05/0.2796, allocations: 10.56 kB / 405 MB, free: 3.164 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001676/0.2797, allocations: 15.39 kB / 405 MB, free: 3.164 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.107e-05/0.2798, allocations: 29.02 kB / 405 MB, free: 3.152 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.166e-05/0.2798, allocations: 4.438 kB / 405 MB, free: 3.152 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001145/0.2799, allocations: 145 kB / 405.2 MB, free: 3.059 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2799, allocations: 4 kB / 405.2 MB, free: 3.055 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003513/0.2803, allocations: 36.36 kB / 405.2 MB, free: 3.051 MB / 318.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.0006312/0.2809, allocations: 0.8389 MB / 406.1 MB, free: 2.316 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004528/0.2814, allocations: 165.9 kB / 406.2 MB, free: 2.27 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.2814, allocations: 1.188 kB / 406.2 MB, free: 2.27 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001875/0.2816, allocations: 74.28 kB / 406.3 MB, free: 2.25 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003738/0.2819, allocations: 29.92 kB / 406.3 MB, free: 2.238 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002748/0.2847, allocations: 2.246 MB / 408.6 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003253/0.285, allocations: 0.7366 MB / 409.3 MB, free: 15.84 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001314/0.2851, allocations: 36 kB / 409.3 MB, free: 15.84 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001132/0.2853, allocations: 66.86 kB / 409.4 MB, free: 15.79 MB / 334.1 MB Notification: Performance of SimCode: time 7.22e-07/0.2853, allocations: 0 / 409.4 MB, free: 15.79 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03313/0.3184, allocations: 4.338 MB / 413.7 MB, free: 13.98 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.89/12.21, allocations: 14.02 kB / 413.8 MB, free: 13.96 MB / 334.1 MB " [Timeout remaining time 648] (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Blocks_Examples_IntegerNetwork1.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1_res.csv. Warning: Get data of variable multiSwitch1.y from file Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1_res.csv failed! Error: Could not read variable triggeredAdd.y in file Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1_res.csv. Warning: Get data of variable triggeredAdd.y from file Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.777870442005224]