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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001313/0.001313, allocations: 107.9 kB / 17.06 MB, free: 6.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001111/0.001111, allocations: 191 kB / 18 MB, free: 5.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.29/1.29, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009898/0.0009898, allocations: 51.92 kB / 350.8 MB, free: 3.754 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2452/0.2462, allocations: 49.44 MB / 400.2 MB, free: 8.398 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.002922/0.2492, allocations: 1.827 MB / 402.1 MB, free: 6.969 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001083/0.2503, allocations: 0.6221 MB / 402.7 MB, free: 6.348 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.228e-05/0.2504, allocations: 7.938 kB / 402.7 MB, free: 6.34 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001298/0.2505, allocations: 27.67 kB / 402.7 MB, free: 6.312 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001304/0.2507, allocations: 35.72 kB / 402.8 MB, free: 6.277 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002874/0.251, allocations: 87.78 kB / 402.8 MB, free: 6.191 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002196/0.2512, allocations: 171.5 kB / 403 MB, free: 6.023 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001804/0.2514, allocations: 70.64 kB / 403.1 MB, free: 5.945 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001091/0.2515, allocations: 67.7 kB / 403.1 MB, free: 5.879 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001386/0.2516, allocations: 91.53 kB / 403.2 MB, free: 5.789 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.469e-05/0.2517, allocations: 16 kB / 403.2 MB, free: 5.773 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.652e-05/0.2518, allocations: 23.98 kB / 403.3 MB, free: 5.75 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.039e-05/0.2518, allocations: 47.78 kB / 403.3 MB, free: 5.703 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.264e-05/0.2519, allocations: 83.53 kB / 403.4 MB, free: 5.621 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002602/0.2522, allocations: 201.5 kB / 403.6 MB, free: 5.43 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/0.2522, allocations: 4 kB / 403.6 MB, free: 5.426 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.2522, allocations: 0 / 403.6 MB, free: 5.426 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.981e-06/0.2522, allocations: 0 / 403.6 MB, free: 5.426 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.0008488/0.2531, allocations: 0.5062 MB / 404.1 MB, free: 4.871 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.756e-05/0.2531, allocations: 12.03 kB / 404.1 MB, free: 4.859 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.069e-05/0.2532, allocations: 50.67 kB / 404.2 MB, free: 4.801 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.038e-05/0.2532, allocations: 24.8 kB / 404.2 MB, free: 4.777 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002732/0.2535, allocations: 256.4 kB / 404.4 MB, free: 4.488 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.915e-05/0.2535, allocations: 12.12 kB / 404.4 MB, free: 4.477 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.187e-05/0.2536, allocations: 16 kB / 404.5 MB, free: 4.461 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003648/0.2539, allocations: 210.3 kB / 404.7 MB, free: 4.234 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.021e-05/0.254, allocations: 7.938 kB / 404.7 MB, free: 4.227 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.831e-05/0.254, allocations: 4 kB / 404.7 MB, free: 4.223 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.1e-05/0.254, allocations: 11.98 kB / 404.7 MB, free: 4.211 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003078/0.2543, allocations: 139.7 kB / 404.8 MB, free: 4.074 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009872/0.2553, allocations: 0.7818 MB / 405.6 MB, free: 3.23 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006071/0.2559, allocations: 194.6 kB / 405.8 MB, free: 3.031 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001484/0.2561, allocations: 60.83 kB / 405.9 MB, free: 2.969 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.472e-05/0.2561, allocations: 7.938 kB / 405.9 MB, free: 2.961 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002497/0.2564, allocations: 145 kB / 406 MB, free: 2.801 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.763e-06/0.2564, allocations: 4 kB / 406 MB, free: 2.797 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005693/0.257, allocations: 241.4 kB / 406.3 MB, free: 2.555 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.436e-05/0.2571, allocations: 89.03 kB / 406.3 MB, free: 2.449 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002146/0.2573, allocations: 218.9 kB / 406.6 MB, free: 2.223 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.367e-05/0.2573, allocations: 29.69 kB / 406.6 MB, free: 2.188 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.009e-05/0.2574, allocations: 144.4 kB / 406.7 MB, free: 2.043 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.446e-05/0.2574, allocations: 35.73 kB / 406.8 MB, free: 2.008 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.835e-05/0.2575, allocations: 61.66 kB / 406.8 MB, free: 1.941 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000112/0.2577, allocations: 330.8 kB / 407.1 MB, free: 1.609 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001588/0.2578, allocations: 67.95 kB / 407.2 MB, free: 1.543 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001807/0.258, allocations: 136.5 kB / 407.3 MB, free: 1.379 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003257/0.2583, allocations: 212.4 kB / 407.5 MB, free: 1.141 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.688e-06/0.2584, allocations: 0 / 407.5 MB, free: 1.141 MB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004354/0.2588, allocations: 257.7 kB / 407.8 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.615e-05/0.2588, allocations: 4 kB / 407.8 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.246e-06/0.2588, allocations: 7.984 kB / 407.8 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.647e-05/0.2589, allocations: 4 kB / 407.8 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001691/0.259, allocations: 35.86 kB / 407.8 MB, free: 0.832 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.122e-05/0.2591, allocations: 7.938 kB / 407.9 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001741/0.2592, allocations: 39.81 kB / 407.9 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.697e-05/0.2593, allocations: 8 kB / 407.9 MB, free: 0.7773 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.0001346/0.2594, allocations: 152 kB / 408.1 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.26e-05/0.2594, allocations: 19.91 kB / 408.1 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002287/0.2597, allocations: 131 kB / 408.2 MB, free: 476 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.2597, allocations: 4.406 kB / 408.2 MB, free: 472 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.2597, allocations: 4 kB / 408.2 MB, free: 468 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.327e-06/0.2597, allocations: 0 / 408.2 MB, free: 468 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005694/0.2603, allocations: 482.2 kB / 408.7 MB, free: 15.93 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.2603, allocations: 4 kB / 408.7 MB, free: 15.93 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001187/0.2604, allocations: 23.91 kB / 408.7 MB, free: 15.9 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/0.2604, allocations: 3.938 kB / 408.7 MB, free: 15.9 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.29e-05/0.2604, allocations: 4 kB / 408.7 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.2605, allocations: 0 / 408.7 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.2605, allocations: 3.984 kB / 408.7 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003918/0.2609, allocations: 296.1 kB / 409 MB, free: 15.58 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.372e-05/0.2609, allocations: 96.95 kB / 409.1 MB, free: 15.47 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.102e-05/0.261, allocations: 3.984 kB / 409.1 MB, free: 15.46 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001722/0.2611, allocations: 19.98 kB / 409.1 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.632e-05/0.2612, allocations: 23.95 kB / 409.1 MB, free: 15.42 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.63e-05/0.2612, allocations: 4 kB / 409.2 MB, free: 15.42 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001202/0.2614, allocations: 148.6 kB / 409.3 MB, free: 15.27 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2614, allocations: 0 / 409.3 MB, free: 15.27 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002949/0.2617, allocations: 47.89 kB / 409.3 MB, free: 15.23 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.0006946/0.2624, allocations: 0.8333 MB / 410.2 MB, free: 14.36 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003826/0.2628, allocations: 175.8 kB / 410.3 MB, free: 14.19 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.2628, allocations: 0 / 410.3 MB, free: 14.19 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001728/0.263, allocations: 79.89 kB / 410.4 MB, free: 14.11 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003429/0.2633, allocations: 28.7 kB / 410.5 MB, free: 14.09 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00244/0.2658, allocations: 2.245 MB / 412.7 MB, free: 11.7 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002603/0.266, allocations: 0.7319 MB / 413.4 MB, free: 10.94 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001034/0.2661, allocations: 37.45 kB / 413.5 MB, free: 10.9 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001052/0.2663, allocations: 67.41 kB / 413.5 MB, free: 10.83 MB / 334.1 MB Notification: Performance of SimCode: time 3.3e-07/0.2663, allocations: 0 / 413.5 MB, free: 10.83 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01879/0.2851, allocations: 4.08 MB / 417.6 MB, free: 6.832 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.667/7.952, allocations: 16.3 kB / 417.6 MB, free: 6.82 MB / 334.1 MB (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.004 Modelica_4_0_0_Modelica_Blocks_Examples_IntegerNetwork1.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) 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) Reference file matches