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.001622/0.001623, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00188/0.00188, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.403/1.403, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 59.09 kB / 307 MB, free: 468 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09005/0.09132, allocations: 50.53 MB / 357.6 MB, free: 13.92 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003302/0.09465, allocations: 1.84 MB / 359.4 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001245/0.09593, allocations: 0.7011 MB / 360.1 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001371/0.09609, allocations: 4 kB / 360.1 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001376/0.09623, allocations: 27.67 kB / 360.1 MB, free: 11.33 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001726/0.09644, allocations: 35.66 kB / 360.2 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003363/0.09679, allocations: 91.77 kB / 360.3 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002393/0.09704, allocations: 175.4 kB / 360.4 MB, free: 11.03 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001763/0.09723, allocations: 74.61 kB / 360.5 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000185/0.09742, allocations: 91.64 kB / 360.6 MB, free: 10.87 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001582/0.09759, allocations: 83.61 kB / 360.7 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.387e-05/0.09763, allocations: 12 kB / 360.7 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.796e-05/0.09773, allocations: 27.98 kB / 360.7 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.284e-05/0.09781, allocations: 47.83 kB / 360.8 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.23e-05/0.0979, allocations: 83.47 kB / 360.8 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002384/0.09815, allocations: 191.5 kB / 361 MB, free: 10.43 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.09816, allocations: 0 / 361 MB, free: 10.43 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.09817, allocations: 0 / 361 MB, free: 10.43 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.783e-06/0.09818, allocations: 0 / 361 MB, free: 10.43 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.000915/0.0991, allocations: 0.5064 MB / 361.5 MB, free: 9.875 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.754e-05/0.09915, allocations: 12.03 kB / 361.5 MB, free: 9.863 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.297e-05/0.09921, allocations: 50.73 kB / 361.6 MB, free: 9.805 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000159/0.09937, allocations: 32.64 kB / 361.6 MB, free: 9.773 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002677/0.09965, allocations: 245.5 kB / 361.9 MB, free: 9.492 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.021e-05/0.09968, allocations: 16.12 kB / 361.9 MB, free: 9.477 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.804e-05/0.09971, allocations: 16.38 kB / 361.9 MB, free: 9.461 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003742/0.1001, allocations: 213.6 kB / 362.1 MB, free: 9.234 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.949e-06/0.1001, allocations: 0 / 362.1 MB, free: 9.234 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.018e-05/0.1001, allocations: 4 kB / 362.1 MB, free: 9.23 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.33e-05/0.1002, allocations: 8 kB / 362.1 MB, free: 9.223 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003403/0.1005, allocations: 143.7 kB / 362.3 MB, free: 9.082 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001057/0.1016, allocations: 0.7972 MB / 363.1 MB, free: 8.223 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006242/0.1022, allocations: 186.7 kB / 363.2 MB, free: 8.031 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001485/0.1024, allocations: 60.77 kB / 363.3 MB, free: 7.969 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.599e-05/0.1024, allocations: 7.984 kB / 363.3 MB, free: 7.961 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002643/0.1027, allocations: 137 kB / 363.4 MB, free: 7.809 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.422e-06/0.1027, allocations: 4 kB / 363.4 MB, free: 7.805 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006266/0.1033, allocations: 245.2 kB / 363.7 MB, free: 7.559 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.015e-05/0.1034, allocations: 89.05 kB / 363.8 MB, free: 7.453 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002061/0.1036, allocations: 222.9 kB / 364 MB, free: 7.223 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.6e-05/0.1037, allocations: 29.7 kB / 364 MB, free: 7.188 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001093/0.1038, allocations: 152.2 kB / 364.2 MB, free: 7.035 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.49e-05/0.1038, allocations: 27.66 kB / 364.2 MB, free: 7.008 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.198e-05/0.1039, allocations: 65.59 kB / 364.3 MB, free: 6.938 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000121/0.1041, allocations: 334.8 kB / 364.6 MB, free: 6.602 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001629/0.1042, allocations: 67.95 kB / 364.7 MB, free: 6.535 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002072/0.1044, allocations: 129.6 kB / 364.8 MB, free: 6.379 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003521/0.1048, allocations: 212.4 kB / 365 MB, free: 6.141 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.718e-06/0.1048, allocations: 0 / 365 MB, free: 6.141 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004823/0.1053, allocations: 249.3 kB / 365.2 MB, free: 5.891 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.662e-05/0.1053, allocations: 8 kB / 365.2 MB, free: 5.883 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/0.1053, allocations: 4 kB / 365.2 MB, free: 5.879 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.893e-05/0.1054, allocations: 0 / 365.2 MB, free: 5.879 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001803/0.1056, allocations: 43.91 kB / 365.3 MB, free: 5.836 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.254e-05/0.1056, allocations: 4 kB / 365.3 MB, free: 5.832 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001832/0.1058, allocations: 39.67 kB / 365.3 MB, free: 5.793 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.613e-05/0.1058, allocations: 4 kB / 365.3 MB, free: 5.789 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.000136/0.1059, allocations: 156.6 kB / 365.5 MB, free: 5.629 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.381e-05/0.106, allocations: 19.81 kB / 365.5 MB, free: 5.609 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000251/0.1062, allocations: 131 kB / 365.6 MB, free: 5.473 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.1063, allocations: 0 / 365.6 MB, free: 5.473 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/0.1063, allocations: 4.312 kB / 365.6 MB, free: 5.469 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.194e-06/0.1063, allocations: 7.922 kB / 365.6 MB, free: 5.461 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000625/0.1069, allocations: 486.7 kB / 366.1 MB, free: 4.93 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-06/0.1069, allocations: 0 / 366.1 MB, free: 4.93 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001335/0.1071, allocations: 19.92 kB / 366.1 MB, free: 4.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.961e-06/0.1071, allocations: 4 kB / 366.1 MB, free: 4.906 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.789e-05/0.1071, allocations: 12.02 kB / 366.2 MB, free: 4.895 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.1071, allocations: 3.938 kB / 366.2 MB, free: 4.891 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.1071, allocations: 4 kB / 366.2 MB, free: 4.887 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004174/0.1075, allocations: 280.1 kB / 366.4 MB, free: 4.594 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.395e-05/0.1076, allocations: 96.91 kB / 366.5 MB, free: 4.48 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.591e-05/0.1076, allocations: 11.88 kB / 366.5 MB, free: 4.469 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001746/0.1078, allocations: 19.97 kB / 366.6 MB, free: 4.449 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.309e-05/0.1079, allocations: 23.91 kB / 366.6 MB, free: 4.426 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.928e-05/0.1079, allocations: 4 kB / 366.6 MB, free: 4.422 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001224/0.1081, allocations: 144.7 kB / 366.7 MB, free: 4.281 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.81e-07/0.1081, allocations: 4 kB / 366.7 MB, free: 4.277 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003407/0.1084, allocations: 43.84 kB / 366.8 MB, free: 4.234 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.0007572/0.1092, allocations: 0.8327 MB / 367.6 MB, free: 3.375 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004168/0.1096, allocations: 175.8 kB / 367.8 MB, free: 3.203 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.1096, allocations: 0 / 367.8 MB, free: 3.203 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001821/0.1098, allocations: 79.89 kB / 367.9 MB, free: 3.125 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00035/0.1102, allocations: 32.47 kB / 367.9 MB, free: 3.094 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002771/0.113, allocations: 2.246 MB / 370.1 MB, free: 0.6953 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1539/0.2668, allocations: 0.7288 MB / 370.9 MB, free: 19.69 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001856/0.2671, allocations: 33.58 kB / 370.9 MB, free: 19.68 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001242/0.2672, allocations: 67.56 kB / 371 MB, free: 19.68 MB / 302.1 MB Notification: Performance of SimCode: time 1.132e-06/0.2672, allocations: 0 / 371 MB, free: 19.68 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0205/0.2877, allocations: 4.071 MB / 375 MB, free: 19.24 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.514/7.801, allocations: 0.8438 kB / 375 MB, free: 19.24 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_IntegerNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_IntegerNetwork1.fmu > Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1_res.mat","/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