Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001097/0.001097, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001171/0.001171, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.339/1.339, allocations: 227.4 MB / 246.8 MB, free: 10.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001233/0.001233, allocations: 59.39 kB / 307 MB, free: 0.5469 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0834/0.08465, allocations: 50.52 MB / 357.6 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003099/0.08778, allocations: 1.853 MB / 359.4 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001296/0.0891, allocations: 0.6972 MB / 360.1 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001379/0.08926, allocations: 0 / 360.1 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001446/0.08942, allocations: 35.61 kB / 360.1 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001449/0.08959, allocations: 27.72 kB / 360.2 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000354/0.08995, allocations: 95.77 kB / 360.3 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002511/0.09022, allocations: 171.4 kB / 360.4 MB, free: 11.13 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001927/0.09042, allocations: 78.61 kB / 360.5 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001877/0.09061, allocations: 83.64 kB / 360.6 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001682/0.09079, allocations: 87.59 kB / 360.7 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.903e-05/0.09084, allocations: 12 kB / 360.7 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.552e-05/0.09093, allocations: 32 kB / 360.7 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.091e-05/0.09101, allocations: 39.84 kB / 360.8 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001021/0.09112, allocations: 91.45 kB / 360.8 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002827/0.09141, allocations: 191.5 kB / 361 MB, free: 10.53 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.09143, allocations: 0 / 361 MB, free: 10.53 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.09143, allocations: 4 kB / 361 MB, free: 10.52 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.005e-06/0.09145, allocations: 0 / 361 MB, free: 10.52 MB / 302.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.000931/0.09238, allocations: 0.4986 MB / 361.5 MB, free: 9.977 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.09e-05/0.09243, allocations: 12.03 kB / 361.6 MB, free: 9.965 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.561e-05/0.09249, allocations: 46.73 kB / 361.6 MB, free: 9.91 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001601/0.09266, allocations: 32.64 kB / 361.6 MB, free: 9.879 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002607/0.09293, allocations: 245.5 kB / 361.9 MB, free: 9.598 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.199e-05/0.09296, allocations: 24.05 kB / 361.9 MB, free: 9.574 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.821e-05/0.093, allocations: 12.38 kB / 361.9 MB, free: 9.562 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003811/0.09338, allocations: 217.6 kB / 362.1 MB, free: 9.332 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.428e-06/0.0934, allocations: 0 / 362.1 MB, free: 9.332 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.181e-05/0.09343, allocations: 8 kB / 362.1 MB, free: 9.324 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.85e-05/0.09346, allocations: 4 kB / 362.1 MB, free: 9.32 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003319/0.09379, allocations: 143.7 kB / 362.3 MB, free: 9.18 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001089/0.09489, allocations: 0.7933 MB / 363.1 MB, free: 8.324 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000646/0.09555, allocations: 182.6 kB / 363.2 MB, free: 8.137 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001519/0.09571, allocations: 68.81 kB / 363.3 MB, free: 8.066 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.448e-05/0.09576, allocations: 7.984 kB / 363.3 MB, free: 8.059 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002553/0.09602, allocations: 139.4 kB / 363.5 MB, free: 7.906 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.333e-06/0.09603, allocations: 0 / 363.5 MB, free: 7.906 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005903/0.09663, allocations: 253.3 kB / 363.7 MB, free: 7.652 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.54e-05/0.09669, allocations: 85.09 kB / 363.8 MB, free: 7.551 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002058/0.09691, allocations: 222.9 kB / 364 MB, free: 7.32 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.759e-05/0.09694, allocations: 37.69 kB / 364 MB, free: 7.277 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001023/0.09705, allocations: 136.2 kB / 364.2 MB, free: 7.141 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.821e-05/0.0971, allocations: 39.62 kB / 364.2 MB, free: 7.102 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.47e-05/0.09719, allocations: 53.61 kB / 364.3 MB, free: 7.043 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001325/0.09733, allocations: 338.8 kB / 364.6 MB, free: 6.703 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001649/0.0975, allocations: 67.95 kB / 364.7 MB, free: 6.637 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002033/0.09771, allocations: 133.6 kB / 364.8 MB, free: 6.477 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003587/0.09808, allocations: 216.3 kB / 365 MB, free: 6.234 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/0.09809, allocations: 4 kB / 365 MB, free: 6.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004713/0.09857, allocations: 241.2 kB / 365.2 MB, free: 5.988 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.689e-05/0.0986, allocations: 7.984 kB / 365.2 MB, free: 5.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.634e-06/0.09861, allocations: 4 kB / 365.3 MB, free: 5.977 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.499e-05/0.09863, allocations: 4.25 kB / 365.3 MB, free: 5.973 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001759/0.09881, allocations: 39.92 kB / 365.3 MB, free: 5.934 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.935e-06/0.09883, allocations: 384 / 365.3 MB, free: 5.934 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001873/0.09902, allocations: 43.66 kB / 365.3 MB, free: 5.891 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.854e-05/0.09905, allocations: 12 kB / 365.3 MB, free: 5.879 MB / 302.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.000158/0.09921, allocations: 148.6 kB / 365.5 MB, free: 5.727 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.305e-05/0.09926, allocations: 19.75 kB / 365.5 MB, free: 5.707 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002596/0.09952, allocations: 135 kB / 365.6 MB, free: 5.566 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.669e-06/0.09954, allocations: 4 kB / 365.6 MB, free: 5.562 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.09955, allocations: 0 / 365.6 MB, free: 5.562 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.582e-06/0.09956, allocations: 3.938 kB / 365.7 MB, free: 5.559 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006074/0.1002, allocations: 478.2 kB / 366.1 MB, free: 5.035 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.1002, allocations: 3.984 kB / 366.1 MB, free: 5.031 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001212/0.1003, allocations: 24.23 kB / 366.1 MB, free: 5.008 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.1003, allocations: 8 kB / 366.2 MB, free: 5 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.459e-05/0.1004, allocations: 3.938 kB / 366.2 MB, free: 4.996 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.751e-06/0.1004, allocations: 8 kB / 366.2 MB, free: 4.988 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.1004, allocations: 0 / 366.2 MB, free: 4.988 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004107/0.1008, allocations: 280.1 kB / 366.4 MB, free: 4.695 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.02e-05/0.1009, allocations: 92.91 kB / 366.5 MB, free: 4.586 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.622e-05/0.1009, allocations: 15.94 kB / 366.5 MB, free: 4.57 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001749/0.1011, allocations: 11.98 kB / 366.6 MB, free: 4.559 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.212e-05/0.1012, allocations: 27.91 kB / 366.6 MB, free: 4.531 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.625e-05/0.1012, allocations: 7.938 kB / 366.6 MB, free: 4.523 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001239/0.1013, allocations: 152.7 kB / 366.7 MB, free: 4.375 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1013, allocations: 0 / 366.7 MB, free: 4.375 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003131/0.1016, allocations: 39.84 kB / 366.8 MB, free: 4.336 MB / 302.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.0007449/0.1024, allocations: 0.8301 MB / 367.6 MB, free: 3.477 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004087/0.1028, allocations: 187.5 kB / 367.8 MB, free: 3.297 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1028, allocations: 0 / 367.8 MB, free: 3.297 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001918/0.103, allocations: 79.83 kB / 367.9 MB, free: 3.219 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003577/0.1034, allocations: 27.97 kB / 367.9 MB, free: 3.191 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002637/0.106, allocations: 2.25 MB / 370.1 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002878/0.1063, allocations: 0.7281 MB / 370.9 MB, free: 36 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001082/0.1065, allocations: 37.52 kB / 370.9 MB, free: 0 / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1338/0.2403, allocations: 63.66 kB / 371 MB, free: 19.68 MB / 302.1 MB Notification: Performance of SimCode: time 6.52e-07/0.2403, allocations: 1.344 kB / 371 MB, free: 19.68 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01957/0.2599, allocations: 4.055 MB / 375 MB, free: 19.25 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.735/7.994, allocations: 0.6562 kB / 375 MB, free: 19.25 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Blocks_Examples_IntegerNetwork1.fmu > Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Blocks.Examples.IntegerNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches