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.001388/0.001388, allocations: 112.6 kB / 16.51 MB, free: 6.715 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.001432/0.001432, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.305/1.305, allocations: 222.9 MB / 241.1 MB, free: 15.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009948/0.0009949, allocations: 43.72 kB / 300 MB, free: 6.199 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09674/0.09775, allocations: 49.46 MB / 349.5 MB, free: 4.738 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003329/0.1011, allocations: 1.871 MB / 351.4 MB, free: 2.844 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001268/0.1024, allocations: 0.6077 MB / 352 MB, free: 2.234 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001572/0.1026, allocations: 7.938 kB / 352 MB, free: 2.227 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001705/0.1028, allocations: 19.78 kB / 352 MB, free: 2.207 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001775/0.103, allocations: 23.8 kB / 352 MB, free: 2.184 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003133/0.1033, allocations: 63.94 kB / 352.1 MB, free: 2.121 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002546/0.1036, allocations: 179.4 kB / 352.3 MB, free: 1.945 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001897/0.1038, allocations: 62.64 kB / 352.3 MB, free: 1.883 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001877/0.104, allocations: 71.64 kB / 352.4 MB, free: 1.812 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001726/0.1042, allocations: 79.61 kB / 352.5 MB, free: 1.734 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.833e-05/0.1042, allocations: 15.98 kB / 352.5 MB, free: 1.719 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.085e-05/0.1043, allocations: 20 kB / 352.5 MB, free: 1.699 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.247e-05/0.1044, allocations: 35.84 kB / 352.6 MB, free: 1.664 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.685e-05/0.1045, allocations: 79.47 kB / 352.6 MB, free: 1.586 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002074/0.1047, allocations: 171.6 kB / 352.8 MB, free: 1.418 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.1047, allocations: 3.938 kB / 352.8 MB, free: 1.414 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1047, allocations: 0 / 352.8 MB, free: 1.414 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.732e-06/0.1047, allocations: 0 / 352.8 MB, free: 1.414 MB / 286.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.0009601/0.1057, allocations: 0.5102 MB / 353.3 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.014e-05/0.1058, allocations: 8.031 kB / 353.3 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.999e-05/0.1058, allocations: 54.67 kB / 353.4 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.408e-05/0.1059, allocations: 24.66 kB / 353.4 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002578/0.1061, allocations: 243.8 kB / 353.6 MB, free: 496 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.816e-05/0.1062, allocations: 8.375 kB / 353.6 MB, free: 488 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.999e-05/0.1062, allocations: 23.94 kB / 353.7 MB, free: 464 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004546/0.1067, allocations: 205.9 kB / 353.9 MB, free: 236 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.351e-05/0.1067, allocations: 4 kB / 353.9 MB, free: 232 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.329e-05/0.1067, allocations: 15.92 kB / 353.9 MB, free: 216 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.772e-05/0.1068, allocations: 8 kB / 353.9 MB, free: 208 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003239/0.1071, allocations: 135.8 kB / 354 MB, free: 72 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001111/0.1082, allocations: 0.7856 MB / 354.8 MB, free: 15.22 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006359/0.1089, allocations: 190.6 kB / 355 MB, free: 15.03 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001856/0.1091, allocations: 64.81 kB / 355.1 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.17e-05/0.1091, allocations: 0 / 355.1 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002909/0.1094, allocations: 148.9 kB / 355.2 MB, free: 14.8 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.202e-06/0.1094, allocations: 0 / 355.2 MB, free: 14.8 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006056/0.11, allocations: 245.3 kB / 355.4 MB, free: 14.55 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.064e-05/0.1101, allocations: 85.05 kB / 355.5 MB, free: 14.45 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002047/0.1103, allocations: 218.8 kB / 355.7 MB, free: 14.23 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.387e-05/0.1104, allocations: 33.7 kB / 355.8 MB, free: 14.19 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.816e-05/0.1105, allocations: 140.2 kB / 355.9 MB, free: 14.05 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.548e-05/0.1105, allocations: 35.56 kB / 355.9 MB, free: 14.01 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.967e-05/0.1106, allocations: 61.69 kB / 356 MB, free: 13.95 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001255/0.1107, allocations: 330.8 kB / 356.3 MB, free: 13.61 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002004/0.1109, allocations: 67.95 kB / 356.4 MB, free: 13.55 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002043/0.1112, allocations: 136.9 kB / 356.5 MB, free: 13.38 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003433/0.1115, allocations: 212.3 kB / 356.7 MB, free: 13.14 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.1115, allocations: 0 / 356.7 MB, free: 13.14 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004828/0.112, allocations: 249.3 kB / 357 MB, free: 12.89 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.551e-05/0.112, allocations: 11.97 kB / 357 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/0.1121, allocations: 4 kB / 357 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.333e-05/0.1121, allocations: 4 kB / 357 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001859/0.1123, allocations: 39.91 kB / 357 MB, free: 12.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.161e-05/0.1123, allocations: 7.938 kB / 357 MB, free: 12.83 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001856/0.1125, allocations: 27.83 kB / 357.1 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.169e-05/0.1125, allocations: 15.98 kB / 357.1 MB, free: 12.79 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.0001627/0.1127, allocations: 144 kB / 357.2 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.493e-05/0.1127, allocations: 19.8 kB / 357.3 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002597/0.113, allocations: 127.3 kB / 357.4 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.133e-06/0.113, allocations: 7.984 kB / 357.4 MB, free: 12.47 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.677e-06/0.113, allocations: 7.938 kB / 357.4 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.113, allocations: 0 / 357.4 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005871/0.1136, allocations: 478.2 kB / 357.9 MB, free: 11.94 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.1137, allocations: 4 kB / 357.9 MB, free: 11.94 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001364/0.1138, allocations: 27.92 kB / 357.9 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.799e-06/0.1138, allocations: 3.938 kB / 357.9 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.639e-05/0.1138, allocations: 3.984 kB / 357.9 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.1138, allocations: 4 kB / 357.9 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1138, allocations: 0 / 357.9 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004087/0.1143, allocations: 287.7 kB / 358.2 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.89e-05/0.1143, allocations: 100.7 kB / 358.3 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.608e-05/0.1144, allocations: 8 kB / 358.3 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001821/0.1146, allocations: 15.97 kB / 358.3 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.163e-05/0.1147, allocations: 19.97 kB / 358.3 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.879e-05/0.1147, allocations: 4 kB / 358.3 MB, free: 11.44 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001214/0.1148, allocations: 148.6 kB / 358.5 MB, free: 11.29 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1148, allocations: 3.938 kB / 358.5 MB, free: 11.29 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003085/0.1151, allocations: 40.19 kB / 358.5 MB, free: 11.25 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.0007541/0.1159, allocations: 0.8421 MB / 359.4 MB, free: 10.38 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003914/0.1163, allocations: 171.8 kB / 359.5 MB, free: 10.21 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.1163, allocations: 0 / 359.5 MB, free: 10.21 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002069/0.1165, allocations: 75.89 kB / 359.6 MB, free: 10.14 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003619/0.1169, allocations: 28.47 kB / 359.6 MB, free: 10.11 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002753/0.1197, allocations: 2.274 MB / 361.9 MB, free: 7.699 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002907/0.12, allocations: 0.7362 MB / 362.6 MB, free: 6.938 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001127/0.1201, allocations: 29.53 kB / 362.7 MB, free: 6.91 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001131/0.1202, allocations: 67.34 kB / 362.7 MB, free: 6.844 MB / 302.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1202, allocations: 0 / 362.7 MB, free: 6.844 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02235/0.1426, allocations: 3.702 MB / 366.4 MB, free: 3.223 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001827/0.1428, allocations: 189.4 kB / 366.6 MB, free: 2.969 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.884/2.026, allocations: 3.938 kB / 366.6 MB, free: 2.965 MB / 302.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_IntegerNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 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.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_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches