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.001025/0.001025, allocations: 101.6 kB / 17.32 MB, free: 5.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001263/0.001263, allocations: 209.8 kB / 18.26 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.368/1.368, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001166/0.001166, allocations: 61.06 kB / 306.5 MB, free: 0.8555 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.1069, allocations: 50.52 MB / 357.1 MB, free: 14.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003584/0.1105, allocations: 1.945 MB / 359 MB, free: 12.37 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001252/0.1118, allocations: 0.6389 MB / 359.7 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001649/0.112, allocations: 4 kB / 359.7 MB, free: 11.72 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00015/0.1121, allocations: 23.8 kB / 359.7 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001779/0.1123, allocations: 27.78 kB / 359.7 MB, free: 11.67 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003098/0.1127, allocations: 67.88 kB / 359.8 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002516/0.1129, allocations: 171.4 kB / 359.9 MB, free: 11.44 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001724/0.1131, allocations: 68.25 kB / 360 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001919/0.1133, allocations: 71.7 kB / 360.1 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001673/0.1135, allocations: 87.55 kB / 360.2 MB, free: 11.22 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.633e-05/0.1135, allocations: 12 kB / 360.2 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.851e-05/0.1136, allocations: 31.98 kB / 360.2 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001508/0.1138, allocations: 43.84 kB / 360.2 MB, free: 11.13 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.95e-05/0.1139, allocations: 83.47 kB / 360.3 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000259/0.1142, allocations: 175.6 kB / 360.5 MB, free: 10.88 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.1142, allocations: 4 kB / 360.5 MB, free: 10.88 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.1142, allocations: 0 / 360.5 MB, free: 10.88 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.323e-06/0.1142, allocations: 0 / 360.5 MB, free: 10.88 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.0008999/0.1151, allocations: 0.5105 MB / 361 MB, free: 10.31 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.759e-05/0.1151, allocations: 8.031 kB / 361 MB, free: 10.3 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.163e-05/0.1152, allocations: 50.73 kB / 361.1 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001518/0.1154, allocations: 32.64 kB / 361.1 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002725/0.1156, allocations: 235.6 kB / 361.3 MB, free: 9.945 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.326e-05/0.1157, allocations: 20.59 kB / 361.4 MB, free: 9.926 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.965e-05/0.1157, allocations: 24.28 kB / 361.4 MB, free: 9.902 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003523/0.1161, allocations: 203.9 kB / 361.6 MB, free: 9.688 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.147e-06/0.1161, allocations: 0 / 361.6 MB, free: 9.688 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.811e-05/0.1161, allocations: 8 kB / 361.6 MB, free: 9.68 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.155e-05/0.1161, allocations: 4 kB / 361.6 MB, free: 9.676 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002848/0.1164, allocations: 139.8 kB / 361.7 MB, free: 9.539 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001155/0.1176, allocations: 0.7779 MB / 362.5 MB, free: 8.699 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003607/0.118, allocations: 161 kB / 362.7 MB, free: 8.523 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000136/0.1181, allocations: 73.8 kB / 362.7 MB, free: 8.445 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.939e-05/0.1182, allocations: 4 kB / 362.7 MB, free: 8.441 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002695/0.1184, allocations: 155.5 kB / 362.9 MB, free: 8.273 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.533e-06/0.1184, allocations: 0 / 362.9 MB, free: 8.273 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005478/0.119, allocations: 253.5 kB / 363.1 MB, free: 8.02 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.113e-05/0.1191, allocations: 85.11 kB / 363.2 MB, free: 7.918 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001773/0.1192, allocations: 211 kB / 363.4 MB, free: 7.703 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.619e-05/0.1193, allocations: 33.7 kB / 363.5 MB, free: 7.664 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.607e-05/0.1194, allocations: 136.2 kB / 363.6 MB, free: 7.523 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.069e-05/0.1194, allocations: 51.34 kB / 363.6 MB, free: 7.473 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.092e-05/0.1195, allocations: 41.7 kB / 363.7 MB, free: 7.426 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001274/0.1196, allocations: 330.8 kB / 364 MB, free: 7.094 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001548/0.1198, allocations: 67.95 kB / 364.1 MB, free: 7.027 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001761/0.12, allocations: 133.9 kB / 364.2 MB, free: 6.875 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003127/0.1203, allocations: 203.3 kB / 364.4 MB, free: 6.652 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.948e-06/0.1203, allocations: 112 / 364.4 MB, free: 6.652 MB / 302.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004202/0.1207, allocations: 241.3 kB / 364.6 MB, free: 6.41 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.774e-05/0.1208, allocations: 4 kB / 364.6 MB, free: 6.406 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.313e-06/0.1208, allocations: 8.109 kB / 364.6 MB, free: 6.398 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.633e-05/0.1208, allocations: 7.922 kB / 364.7 MB, free: 6.391 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001616/0.121, allocations: 35.98 kB / 364.7 MB, free: 6.355 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.021e-05/0.121, allocations: 7.922 kB / 364.7 MB, free: 6.348 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001598/0.1212, allocations: 35.81 kB / 364.7 MB, free: 6.312 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.557e-05/0.1212, allocations: 8 kB / 364.7 MB, free: 6.305 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.00014/0.1213, allocations: 149.8 kB / 364.9 MB, free: 6.148 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.361e-05/0.1214, allocations: 23.7 kB / 364.9 MB, free: 6.125 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004495/0.1218, allocations: 214.9 kB / 365.1 MB, free: 5.902 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.732e-06/0.1218, allocations: 4 kB / 365.1 MB, free: 5.898 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.1219, allocations: 0 / 365.1 MB, free: 5.898 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/0.1219, allocations: 0 / 365.1 MB, free: 5.898 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002565/0.1221, allocations: 265.5 kB / 365.4 MB, free: 5.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.1221, allocations: 4 kB / 365.4 MB, free: 5.586 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001197/0.1223, allocations: 27.91 kB / 365.4 MB, free: 5.559 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.697e-06/0.1223, allocations: 0 / 365.4 MB, free: 5.559 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.574e-05/0.1223, allocations: 4 kB / 365.4 MB, free: 5.555 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.298e-06/0.1223, allocations: 4 kB / 365.4 MB, free: 5.551 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1223, allocations: 0 / 365.4 MB, free: 5.551 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003847/0.1227, allocations: 233.4 kB / 365.7 MB, free: 5.301 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.491e-05/0.1228, allocations: 92.92 kB / 365.7 MB, free: 5.191 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.784e-05/0.1228, allocations: 4 kB / 365.7 MB, free: 5.188 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001246/0.1229, allocations: 15.97 kB / 365.8 MB, free: 5.172 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.366e-05/0.123, allocations: 15.98 kB / 365.8 MB, free: 5.156 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.28e-05/0.123, allocations: 7.984 kB / 365.8 MB, free: 5.148 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001258/0.1231, allocations: 144.7 kB / 365.9 MB, free: 5.008 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1232, allocations: 0 / 365.9 MB, free: 5.008 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002654/0.1234, allocations: 43.94 kB / 366 MB, free: 4.965 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.0007062/0.1241, allocations: 0.7652 MB / 366.7 MB, free: 4.168 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003832/0.1245, allocations: 190.4 kB / 366.9 MB, free: 3.984 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.1245, allocations: 0 / 366.9 MB, free: 3.984 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001752/0.1247, allocations: 79.89 kB / 367 MB, free: 3.906 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003413/0.1251, allocations: 40.11 kB / 367 MB, free: 3.867 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002736/0.1278, allocations: 2.243 MB / 369.3 MB, free: 1.496 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003494/0.1282, allocations: 0.7397 MB / 370 MB, free: 0.7305 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001273/0.1283, allocations: 37.52 kB / 370.1 MB, free: 0.6914 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.887e-05/0.1284, allocations: 59.42 kB / 370.1 MB, free: 0.6328 MB / 302.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1284, allocations: 0 / 370.1 MB, free: 0.6328 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1666/0.295, allocations: 3.862 MB / 374 MB, free: 20.1 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001418/0.2952, allocations: 186.4 kB / 374.2 MB, free: 19.84 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.006/2.301, allocations: 3.656 kB / 374.2 MB, free: 19.84 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_RealNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_RealNetwork1.fmu > Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1_res.mat","/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