Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.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.RealNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001053/0.001053, allocations: 106 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001281/0.001281, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.356/1.356, allocations: 227.4 MB / 246.8 MB, free: 10.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00119/0.001191, allocations: 59.22 kB / 307 MB, free: 0.543 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09437/0.09558, allocations: 50.52 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.00427/0.09989, allocations: 1.884 MB / 359.4 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001667/0.1016, allocations: 0.6544 MB / 360.1 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001449/0.1018, allocations: 8 kB / 360.1 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001688/0.1019, allocations: 27.67 kB / 360.1 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002004/0.1022, allocations: 35.66 kB / 360.2 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000403/0.1026, allocations: 75.84 kB / 360.2 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003197/0.1029, allocations: 167.4 kB / 360.4 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002263/0.1032, allocations: 76.23 kB / 360.5 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002081/0.1034, allocations: 71.66 kB / 360.6 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001866/0.1036, allocations: 83.61 kB / 360.6 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.368e-05/0.1037, allocations: 16 kB / 360.6 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001084/0.1038, allocations: 27.98 kB / 360.7 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001025/0.1039, allocations: 39.84 kB / 360.7 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000122/0.104, allocations: 83.47 kB / 360.8 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003246/0.1044, allocations: 187.5 kB / 361 MB, free: 10.59 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.319e-06/0.1044, allocations: 0 / 361 MB, free: 10.59 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.1044, allocations: 0 / 361 MB, free: 10.59 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.154e-06/0.1044, allocations: 0 / 361 MB, free: 10.59 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.001251/0.1057, allocations: 0.5105 MB / 361.5 MB, free: 10.02 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.174e-05/0.1057, allocations: 8.031 kB / 361.5 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.6e-05/0.1058, allocations: 46.73 kB / 361.5 MB, free: 9.961 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002553/0.1061, allocations: 32.64 kB / 361.6 MB, free: 9.93 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003585/0.1065, allocations: 243.6 kB / 361.8 MB, free: 9.652 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.523e-05/0.1065, allocations: 8.656 kB / 361.8 MB, free: 9.645 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.121e-05/0.1066, allocations: 20.31 kB / 361.8 MB, free: 9.625 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005434/0.1071, allocations: 203.9 kB / 362 MB, free: 9.41 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.159e-05/0.1071, allocations: 3.938 kB / 362 MB, free: 9.406 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.66e-05/0.1072, allocations: 4 kB / 362 MB, free: 9.402 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.501e-05/0.1072, allocations: 4 kB / 362.1 MB, free: 9.398 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005291/0.1078, allocations: 143.8 kB / 362.2 MB, free: 9.258 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001656/0.1094, allocations: 0.7818 MB / 363 MB, free: 8.414 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000532/0.11, allocations: 161.1 kB / 363.1 MB, free: 8.238 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000272/0.1103, allocations: 81.73 kB / 363.2 MB, free: 8.152 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.124e-05/0.1103, allocations: 8 kB / 363.2 MB, free: 8.145 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000408/0.1108, allocations: 143.5 kB / 363.4 MB, free: 7.988 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 2.444e-06/0.1108, allocations: 0 / 363.4 MB, free: 7.988 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0008899/0.1117, allocations: 253.3 kB / 363.6 MB, free: 7.734 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.813e-05/0.1118, allocations: 85.11 kB / 363.7 MB, free: 7.633 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003017/0.1121, allocations: 215 kB / 363.9 MB, free: 7.414 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.324e-05/0.1121, allocations: 29.7 kB / 363.9 MB, free: 7.379 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001321/0.1123, allocations: 144.2 kB / 364.1 MB, free: 7.23 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.46e-05/0.1124, allocations: 39.36 kB / 364.1 MB, free: 7.191 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001139/0.1125, allocations: 41.7 kB / 364.2 MB, free: 7.145 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001512/0.1126, allocations: 334.8 kB / 364.5 MB, free: 6.809 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002713/0.1129, allocations: 71.95 kB / 364.5 MB, free: 6.738 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003183/0.1133, allocations: 130.6 kB / 364.7 MB, free: 6.586 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005962/0.1139, allocations: 202.7 kB / 364.9 MB, free: 6.363 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.1139, allocations: 0 / 364.9 MB, free: 6.363 MB / 302.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007953/0.1147, allocations: 242 kB / 365.1 MB, free: 6.121 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.053e-05/0.1147, allocations: 11.94 kB / 365.1 MB, free: 6.109 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.763e-06/0.1148, allocations: 0 / 365.1 MB, free: 6.109 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.765e-05/0.1148, allocations: 7.984 kB / 365.1 MB, free: 6.102 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002705/0.1151, allocations: 32.02 kB / 365.2 MB, free: 6.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.086e-05/0.1151, allocations: 7.938 kB / 365.2 MB, free: 6.062 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000276/0.1154, allocations: 31.81 kB / 365.2 MB, free: 6.031 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.897e-05/0.1154, allocations: 16.19 kB / 365.2 MB, free: 6.016 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.multiSwitch.u[1],$PRE.multiSwitch.u[2],$whenCondition2,$whenCondition1,booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,multiSwitch.firstActiveIndex,multiSwitch.u[2],multiSwitch.u[1],booleanPulse1.pulseStart,$PRE.booleanPulse1.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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.0001985/0.1156, allocations: 149.6 kB / 365.4 MB, free: 5.859 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.657e-05/0.1157, allocations: 23.7 kB / 365.4 MB, free: 5.836 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007031/0.1164, allocations: 211 kB / 365.6 MB, free: 5.617 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.1164, allocations: 0 / 365.6 MB, free: 5.617 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.884e-06/0.1165, allocations: 4 kB / 365.6 MB, free: 5.613 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.495e-06/0.1165, allocations: 4 kB / 365.6 MB, free: 5.609 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004172/0.1169, allocations: 269.5 kB / 365.9 MB, free: 5.297 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.1169, allocations: 0 / 365.9 MB, free: 5.297 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002121/0.1171, allocations: 23.97 kB / 365.9 MB, free: 5.273 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.664e-06/0.1172, allocations: 4 kB / 365.9 MB, free: 5.27 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.168e-05/0.1172, allocations: 4 kB / 365.9 MB, free: 5.266 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.1172, allocations: 0 / 365.9 MB, free: 5.266 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.1172, allocations: 0 / 365.9 MB, free: 5.266 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006352/0.1179, allocations: 237.4 kB / 366.1 MB, free: 5.012 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.428e-05/0.118, allocations: 88.92 kB / 366.2 MB, free: 4.906 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.764e-05/0.118, allocations: 8 kB / 366.2 MB, free: 4.898 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002433/0.1183, allocations: 15.97 kB / 366.2 MB, free: 4.883 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.83e-05/0.1184, allocations: 15.98 kB / 366.2 MB, free: 4.867 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.934e-05/0.1184, allocations: 7.984 kB / 366.3 MB, free: 4.859 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001912/0.1186, allocations: 144.7 kB / 366.4 MB, free: 4.719 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.1186, allocations: 4 kB / 366.4 MB, free: 4.715 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005006/0.1192, allocations: 35.94 kB / 366.4 MB, free: 4.68 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: 7 ($whenCondition2,$whenCondition1,booleanPulse1.pulseStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,booleanPulse2.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001092/0.1203, allocations: 0.7651 MB / 367.2 MB, free: 3.883 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006591/0.1209, allocations: 187.8 kB / 367.4 MB, free: 3.699 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.121, allocations: 0 / 367.4 MB, free: 3.699 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003242/0.1213, allocations: 87.89 kB / 367.5 MB, free: 3.613 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005323/0.1218, allocations: 39.19 kB / 367.5 MB, free: 3.578 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004162/0.126, allocations: 2.188 MB / 369.7 MB, free: 1.258 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004221/0.1265, allocations: 0.7319 MB / 370.4 MB, free: 0.5 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002065/0.1267, allocations: 37.52 kB / 370.5 MB, free: 472 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001367/0.1268, allocations: 55.42 kB / 370.5 MB, free: 416 kB / 302.1 MB Notification: Performance of SimCode: time 4.6e-07/0.1269, allocations: 0 / 370.5 MB, free: 416 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.18/0.3069, allocations: 4.07 MB / 374.6 MB, free: 19.93 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.367/7.674, allocations: 8.688 kB / 374.6 MB, free: 19.93 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1_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_RealNetwork1.fmu > Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches