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.001692/0.001692, allocations: 114.4 kB / 17.73 MB, free: 5.34 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.001784/0.001784, allocations: 183.1 kB / 18.66 MB, free: 4.414 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.506/1.506, 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.001615/0.001615, allocations: 55.92 kB / 328 MB, free: 3.82 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08855/0.09017, allocations: 46.62 MB / 374.6 MB, free: 5.09 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.002985/0.0932, allocations: 1.817 MB / 376.5 MB, free: 3.258 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001289/0.09452, allocations: 0.6668 MB / 377.1 MB, free: 2.582 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.515e-05/0.09463, allocations: 7.938 kB / 377.1 MB, free: 2.574 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001375/0.09478, allocations: 27.66 kB / 377.2 MB, free: 2.547 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001281/0.09493, allocations: 35.72 kB / 377.2 MB, free: 2.512 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002838/0.09522, allocations: 83.78 kB / 377.3 MB, free: 2.43 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002491/0.09548, allocations: 171.5 kB / 377.4 MB, free: 2.262 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001853/0.09567, allocations: 82.55 kB / 377.5 MB, free: 2.18 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001203/0.0958, allocations: 63.72 kB / 377.6 MB, free: 2.117 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001648/0.09597, allocations: 87.59 kB / 377.7 MB, free: 2.031 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.747e-05/0.09602, allocations: 16 kB / 377.7 MB, free: 2.016 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.236e-05/0.0961, allocations: 23.94 kB / 377.7 MB, free: 1.992 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.737e-05/0.09618, allocations: 47.83 kB / 377.8 MB, free: 1.945 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.658e-05/0.09628, allocations: 87.47 kB / 377.8 MB, free: 1.859 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002851/0.09657, allocations: 203 kB / 378 MB, free: 1.66 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.09659, allocations: 4 kB / 378 MB, free: 1.656 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.09659, allocations: 0 / 378 MB, free: 1.656 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.841e-06/0.09661, allocations: 0 / 378 MB, free: 1.656 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.0009334/0.09754, allocations: 0.5024 MB / 378.5 MB, free: 1.105 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.476e-05/0.09759, allocations: 8.031 kB / 378.6 MB, free: 1.098 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.948e-05/0.09765, allocations: 50.73 kB / 378.6 MB, free: 1.039 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.877e-05/0.09771, allocations: 20.8 kB / 378.6 MB, free: 1.02 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000306/0.09802, allocations: 252 kB / 378.9 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.195e-05/0.09805, allocations: 12.38 kB / 378.9 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.989e-05/0.09809, allocations: 20.36 kB / 378.9 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000407/0.0985, allocations: 213.4 kB / 379.1 MB, free: 488 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.126e-05/0.09852, allocations: 0 / 379.1 MB, free: 488 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.852e-05/0.09855, allocations: 8 kB / 379.1 MB, free: 480 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.277e-05/0.09858, allocations: 11.86 kB / 379.1 MB, free: 468 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004179/0.099, allocations: 139.7 kB / 379.3 MB, free: 328 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1734/0.2724, allocations: 0.7801 MB / 380 MB, free: 12.4 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006651/0.2731, allocations: 188.2 kB / 380.2 MB, free: 12.38 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000148/0.2733, allocations: 67.42 kB / 380.3 MB, free: 12.37 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.051e-05/0.2733, allocations: 3.297 kB / 380.3 MB, free: 12.37 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002592/0.2736, allocations: 148.6 kB / 380.4 MB, free: 12.3 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 2.185e-06/0.2736, allocations: 0.75 kB / 380.4 MB, free: 12.3 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006239/0.2742, allocations: 241.1 kB / 380.7 MB, free: 12.27 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.59e-05/0.2743, allocations: 86.05 kB / 380.8 MB, free: 12.18 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001948/0.2745, allocations: 221.6 kB / 381 MB, free: 12.08 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.993e-05/0.2745, allocations: 31.27 kB / 381 MB, free: 12.05 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.601e-05/0.2746, allocations: 140 kB / 381.2 MB, free: 11.95 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.227e-05/0.2746, allocations: 41.75 kB / 381.2 MB, free: 11.94 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.265e-05/0.2747, allocations: 54.8 kB / 381.2 MB, free: 11.92 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.083e-05/0.2748, allocations: 332.4 kB / 381.6 MB, free: 11.61 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001641/0.275, allocations: 67.03 kB / 381.6 MB, free: 11.61 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001868/0.2752, allocations: 139.6 kB / 381.8 MB, free: 11.53 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003209/0.2755, allocations: 217.9 kB / 382 MB, free: 11.45 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.2755, allocations: 0 / 382 MB, free: 11.45 MB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004814/0.276, allocations: 254.8 kB / 382.2 MB, free: 11.4 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.172e-05/0.276, allocations: 5.969 kB / 382.2 MB, free: 11.4 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.276, allocations: 5.969 kB / 382.2 MB, free: 11.4 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.778e-05/0.2761, allocations: 7.594 kB / 382.3 MB, free: 11.4 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001985/0.2763, allocations: 37.19 kB / 382.3 MB, free: 11.4 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.191e-05/0.2763, allocations: 6.859 kB / 382.3 MB, free: 11.4 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001734/0.2765, allocations: 31 kB / 382.3 MB, free: 11.39 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.986e-05/0.2765, allocations: 10.69 kB / 382.3 MB, free: 11.39 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.0001132/0.2766, allocations: 156.6 kB / 382.5 MB, free: 11.28 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.782e-05/0.2767, allocations: 25.25 kB / 382.5 MB, free: 11.26 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002981/0.277, allocations: 133.4 kB / 382.6 MB, free: 11.22 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.093e-06/0.277, allocations: 2.312 kB / 382.6 MB, free: 11.22 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.277, allocations: 0.5 kB / 382.6 MB, free: 11.22 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.277, allocations: 5.266 kB / 382.7 MB, free: 11.22 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006415/0.2777, allocations: 479.1 kB / 383.1 MB, free: 10.91 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.2777, allocations: 0 / 383.1 MB, free: 10.91 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001173/0.2778, allocations: 17.75 kB / 383.1 MB, free: 10.91 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.847e-06/0.2778, allocations: 1.906 kB / 383.1 MB, free: 10.91 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.723e-05/0.2778, allocations: 6.812 kB / 383.1 MB, free: 10.91 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.058e-06/0.2778, allocations: 5.656 kB / 383.2 MB, free: 10.91 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.2778, allocations: 5.219 kB / 383.2 MB, free: 10.91 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004251/0.2783, allocations: 280.3 kB / 383.4 MB, free: 10.75 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.46e-05/0.2783, allocations: 97.97 kB / 383.5 MB, free: 10.65 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.26e-05/0.2784, allocations: 7.891 kB / 383.5 MB, free: 10.64 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001759/0.2785, allocations: 19.88 kB / 383.6 MB, free: 10.64 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.956e-05/0.2786, allocations: 24.16 kB / 383.6 MB, free: 10.63 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.182e-05/0.2787, allocations: 4.922 kB / 383.6 MB, free: 10.63 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001234/0.2788, allocations: 151.1 kB / 383.7 MB, free: 10.54 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2788, allocations: 0 / 383.7 MB, free: 10.54 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003234/0.2791, allocations: 41 kB / 383.8 MB, free: 10.53 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.0006316/0.2798, allocations: 0.8354 MB / 384.6 MB, free: 9.801 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004689/0.2802, allocations: 171.2 kB / 384.8 MB, free: 9.754 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.2803, allocations: 0.5 kB / 384.8 MB, free: 9.754 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001941/0.2805, allocations: 82.56 kB / 384.9 MB, free: 9.73 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003717/0.2808, allocations: 31.84 kB / 384.9 MB, free: 9.719 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002621/0.2835, allocations: 2.247 MB / 387.1 MB, free: 8.023 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002129/0.2837, allocations: 0.7334 MB / 387.9 MB, free: 7.324 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001342/0.2839, allocations: 36.84 kB / 387.9 MB, free: 7.32 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000108/0.284, allocations: 65.17 kB / 388 MB, free: 7.273 MB / 318.1 MB Notification: Performance of SimCode: time 4.71e-07/0.284, allocations: 0 / 388 MB, free: 7.273 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.029/0.313, allocations: 4.099 MB / 392.1 MB, free: 6.598 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.544/8.857, allocations: 5.344 kB / 392.1 MB, free: 6.594 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