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.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 3.2.3+maint.om/package.mo", uses=false) 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.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_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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001387/0.001387, allocations: 109.4 kB / 17.73 MB, free: 5.32 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.001368/0.001368, allocations: 196.2 kB / 18.67 MB, free: 4.387 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.403/1.403, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001357/0.001357, allocations: 51.92 kB / 328 MB, free: 3.812 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.1028, allocations: 46.62 MB / 374.6 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003678/0.1065, allocations: 1.817 MB / 376.5 MB, free: 3.25 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001505/0.108, allocations: 0.6785 MB / 377.1 MB, free: 2.562 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002053/0.1083, allocations: 0 / 377.1 MB, free: 2.562 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001947/0.1085, allocations: 31.61 kB / 377.2 MB, free: 2.531 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002331/0.1088, allocations: 27.73 kB / 377.2 MB, free: 2.504 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004267/0.1092, allocations: 83.84 kB / 377.3 MB, free: 2.422 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003367/0.1096, allocations: 179.4 kB / 377.4 MB, free: 2.246 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002187/0.1098, allocations: 70.62 kB / 377.5 MB, free: 2.176 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001825/0.11, allocations: 79.64 kB / 377.6 MB, free: 2.098 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001869/0.1102, allocations: 83.61 kB / 377.7 MB, free: 2.016 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.104e-05/0.1102, allocations: 16 kB / 377.7 MB, free: 2 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.892e-05/0.1103, allocations: 23.98 kB / 377.7 MB, free: 1.977 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001043/0.1104, allocations: 47.83 kB / 377.8 MB, free: 1.93 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001058/0.1105, allocations: 83.47 kB / 377.8 MB, free: 1.848 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003217/0.1109, allocations: 199 kB / 378 MB, free: 1.652 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.1109, allocations: 0 / 378 MB, free: 1.652 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1109, allocations: 0 / 378 MB, free: 1.652 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.706e-06/0.1109, allocations: 0 / 378 MB, free: 1.652 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.0009986/0.1119, allocations: 0.5102 MB / 378.5 MB, free: 1.094 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.022e-05/0.112, allocations: 8.031 kB / 378.6 MB, free: 1.086 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.993e-05/0.112, allocations: 58.67 kB / 378.6 MB, free: 1.02 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.749e-05/0.1121, allocations: 20.8 kB / 378.6 MB, free: 1 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003137/0.1124, allocations: 248 kB / 378.9 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.15e-05/0.1125, allocations: 20.38 kB / 378.9 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.04e-05/0.1125, allocations: 16.38 kB / 378.9 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004014/0.1129, allocations: 205.4 kB / 379.1 MB, free: 476 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.103e-05/0.1129, allocations: 4 kB / 379.1 MB, free: 472 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.945e-05/0.1129, allocations: 4 kB / 379.1 MB, free: 468 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.555e-05/0.113, allocations: 11.86 kB / 379.1 MB, free: 456 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003399/0.1133, allocations: 143.7 kB / 379.3 MB, free: 312 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2063/0.3196, allocations: 0.782 MB / 380.1 MB, free: 12.42 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006436/0.3203, allocations: 190.1 kB / 380.2 MB, free: 12.4 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000146/0.3205, allocations: 67.17 kB / 380.3 MB, free: 12.39 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.374e-05/0.3205, allocations: 3.688 kB / 380.3 MB, free: 12.39 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002647/0.3208, allocations: 143.9 kB / 380.5 MB, free: 12.33 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.824e-06/0.3208, allocations: 0 / 380.5 MB, free: 12.33 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.000598/0.3214, allocations: 241.6 kB / 380.7 MB, free: 12.3 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.735e-05/0.3215, allocations: 83.89 kB / 380.8 MB, free: 12.2 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001856/0.3217, allocations: 218.6 kB / 381 MB, free: 12.1 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.138e-05/0.3217, allocations: 34.95 kB / 381 MB, free: 12.07 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.286e-05/0.3218, allocations: 140.1 kB / 381.2 MB, free: 11.98 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.389e-05/0.3218, allocations: 36.69 kB / 381.2 MB, free: 11.96 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.117e-05/0.3219, allocations: 62.83 kB / 381.2 MB, free: 11.95 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.913e-05/0.322, allocations: 327.9 kB / 381.6 MB, free: 11.63 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001601/0.3222, allocations: 71.09 kB / 381.6 MB, free: 11.63 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000177/0.3223, allocations: 135.4 kB / 381.8 MB, free: 11.55 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003457/0.3227, allocations: 224.2 kB / 382 MB, free: 11.47 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.3227, allocations: 1.219 kB / 382 MB, free: 11.47 MB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004849/0.3232, allocations: 249.3 kB / 382.2 MB, free: 11.43 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.25e-05/0.3232, allocations: 6.75 kB / 382.2 MB, free: 11.43 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.874e-06/0.3232, allocations: 2.812 kB / 382.2 MB, free: 11.43 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.252e-05/0.3233, allocations: 3.656 kB / 382.2 MB, free: 11.43 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001967/0.3235, allocations: 38.45 kB / 382.3 MB, free: 11.42 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.514e-05/0.3235, allocations: 8.922 kB / 382.3 MB, free: 11.42 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001763/0.3237, allocations: 32.81 kB / 382.3 MB, free: 11.41 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.182e-05/0.3237, allocations: 13.06 kB / 382.3 MB, free: 11.41 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.0001199/0.3238, allocations: 158 kB / 382.5 MB, free: 11.29 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.978e-05/0.3239, allocations: 23.03 kB / 382.5 MB, free: 11.28 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002935/0.3242, allocations: 128.8 kB / 382.6 MB, free: 11.24 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.825e-06/0.3242, allocations: 2.625 kB / 382.6 MB, free: 11.24 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.3242, allocations: 5 kB / 382.6 MB, free: 11.24 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.3242, allocations: 1.375 kB / 382.7 MB, free: 11.24 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007348/0.325, allocations: 480.7 kB / 383.1 MB, free: 10.93 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.325, allocations: 1 kB / 383.1 MB, free: 10.93 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001186/0.3251, allocations: 18.52 kB / 383.1 MB, free: 10.93 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.3251, allocations: 1.156 kB / 383.1 MB, free: 10.93 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.862e-05/0.3251, allocations: 7.672 kB / 383.1 MB, free: 10.93 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.504e-06/0.3251, allocations: 1.062 kB / 383.1 MB, free: 10.93 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.3252, allocations: 256 / 383.1 MB, free: 10.93 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004157/0.3256, allocations: 297.2 kB / 383.4 MB, free: 10.77 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.064e-05/0.3256, allocations: 94.81 kB / 383.5 MB, free: 10.67 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.546e-05/0.3257, allocations: 2.719 kB / 383.5 MB, free: 10.67 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000171/0.3259, allocations: 19.23 kB / 383.6 MB, free: 10.66 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.83e-05/0.3259, allocations: 27.42 kB / 383.6 MB, free: 10.65 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.884e-05/0.326, allocations: 11.17 kB / 383.6 MB, free: 10.65 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001109/0.3261, allocations: 148.9 kB / 383.7 MB, free: 10.55 MB / 318.1 MB Notification: Performance of sort global known variables: time 4.71e-07/0.3261, allocations: 1.344 kB / 383.7 MB, free: 10.55 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003003/0.3264, allocations: 38.11 kB / 383.8 MB, free: 10.55 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.0006375/0.327, allocations: 0.828 MB / 384.6 MB, free: 9.828 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004016/0.3275, allocations: 168.7 kB / 384.8 MB, free: 9.785 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.3275, allocations: 1.375 kB / 384.8 MB, free: 9.785 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001765/0.3276, allocations: 86.16 kB / 384.9 MB, free: 9.762 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003584/0.328, allocations: 35.25 kB / 384.9 MB, free: 9.746 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00247/0.3305, allocations: 2.244 MB / 387.1 MB, free: 8.055 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002251/0.3307, allocations: 0.7376 MB / 387.9 MB, free: 7.352 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001161/0.3309, allocations: 32.5 kB / 387.9 MB, free: 7.352 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001103/0.331, allocations: 62.91 kB / 388 MB, free: 7.309 MB / 318.1 MB Notification: Performance of SimCode: time 2.7e-07/0.331, allocations: 4 kB / 388 MB, free: 7.305 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02059/0.3516, allocations: 4.097 MB / 392.1 MB, free: 6.629 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.042/8.394, allocations: 9.688 kB / 392.1 MB, free: 6.621 MB / 318.1 MB (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.004 Modelica_3_2_3_Modelica_Blocks_Examples_IntegerNetwork1.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) 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) Reference file matches