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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001466/0.001466, allocations: 118.7 kB / 18.5 MB, free: 4.602 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001894/0.001894, allocations: 210.5 kB / 21.46 MB, free: 1.648 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.458/1.458, allocations: 230.2 MB / 254.5 MB, free: 15.26 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00183/0.00183, allocations: 63.89 kB / 373.3 MB, free: 10.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1159/0.1177, allocations: 53.32 MB / 426.7 MB, free: 5.008 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003233/0.121, allocations: 1.9 MB / 428.6 MB, free: 3.098 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001423/0.1224, allocations: 0.6544 MB / 429.2 MB, free: 2.438 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001161/0.1225, allocations: 4 kB / 429.2 MB, free: 2.434 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001602/0.1227, allocations: 31.66 kB / 429.2 MB, free: 2.402 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001758/0.1228, allocations: 35.66 kB / 429.3 MB, free: 2.367 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003216/0.1232, allocations: 79.78 kB / 429.4 MB, free: 2.289 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002618/0.1234, allocations: 167.4 kB / 429.5 MB, free: 2.125 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001755/0.1236, allocations: 52.28 kB / 429.6 MB, free: 2.074 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001799/0.1238, allocations: 79.64 kB / 429.6 MB, free: 1.996 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001617/0.1239, allocations: 79.61 kB / 429.7 MB, free: 1.918 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.725e-05/0.124, allocations: 12 kB / 429.7 MB, free: 1.906 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.039e-05/0.1241, allocations: 27.92 kB / 429.8 MB, free: 1.879 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.869e-05/0.1241, allocations: 43.84 kB / 429.8 MB, free: 1.836 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.906e-05/0.1242, allocations: 87.42 kB / 429.9 MB, free: 1.75 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003058/0.1246, allocations: 191.1 kB / 430.1 MB, free: 1.562 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.1246, allocations: 0 / 430.1 MB, free: 1.562 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.1246, allocations: 0 / 430.1 MB, free: 1.562 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.222e-05/0.1246, allocations: 4 kB / 430.1 MB, free: 1.559 MB / 350.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.0009907/0.1256, allocations: 0.5208 MB / 430.6 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.351e-05/0.1256, allocations: 8.031 kB / 430.6 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.735e-05/0.1257, allocations: 54.67 kB / 430.7 MB, free: 0.918 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001519/0.1258, allocations: 36.78 kB / 430.7 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003143/0.1261, allocations: 232 kB / 430.9 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.428e-05/0.1262, allocations: 24.59 kB / 431 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.135e-05/0.1262, allocations: 12.38 kB / 431 MB, free: 0.582 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000362/0.1266, allocations: 199.1 kB / 431.2 MB, free: 380 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.182e-05/0.1266, allocations: 0 / 431.2 MB, free: 380 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.16e-05/0.1266, allocations: 8 kB / 431.2 MB, free: 372 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.987e-05/0.1266, allocations: 4 kB / 431.2 MB, free: 368 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002948/0.1269, allocations: 147.8 kB / 431.3 MB, free: 220 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001158/0.1281, allocations: 0.7779 MB / 432.1 MB, free: 15.38 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003218/0.1284, allocations: 157 kB / 432.2 MB, free: 15.2 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001473/0.1285, allocations: 65.81 kB / 432.3 MB, free: 15.13 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.396e-05/0.1286, allocations: 8 kB / 432.3 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002619/0.1288, allocations: 145 kB / 432.5 MB, free: 14.96 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 2.023e-06/0.1289, allocations: 0 / 432.5 MB, free: 14.96 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005779/0.1294, allocations: 261.7 kB / 432.7 MB, free: 14.7 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.482e-05/0.1295, allocations: 85.11 kB / 432.8 MB, free: 14.6 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002201/0.1297, allocations: 203.1 kB / 433 MB, free: 14.39 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.951e-05/0.1298, allocations: 33.7 kB / 433 MB, free: 14.35 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001143/0.1299, allocations: 144.3 kB / 433.2 MB, free: 14.21 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.656e-05/0.1299, allocations: 43.64 kB / 433.2 MB, free: 14.16 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.418e-05/0.13, allocations: 45.7 kB / 433.3 MB, free: 14.11 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001545/0.1302, allocations: 334.8 kB / 433.6 MB, free: 13.78 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001536/0.1303, allocations: 75.89 kB / 433.7 MB, free: 13.7 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001793/0.1305, allocations: 118.8 kB / 433.8 MB, free: 13.56 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003226/0.1308, allocations: 206.6 kB / 434 MB, free: 13.34 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.1308, allocations: 0 / 434 MB, free: 13.34 MB / 366.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004288/0.1312, allocations: 249.3 kB / 434.2 MB, free: 13.09 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.669e-05/0.1313, allocations: 4 kB / 434.2 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/0.1313, allocations: 4 kB / 434.2 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.833e-05/0.1313, allocations: 3.984 kB / 434.2 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001743/0.1315, allocations: 39.92 kB / 434.3 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.284e-06/0.1315, allocations: 0 / 434.3 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001534/0.1316, allocations: 31.86 kB / 434.3 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.791e-05/0.1316, allocations: 8.156 kB / 434.3 MB, free: 13 MB / 366.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.0001535/0.1318, allocations: 153.7 kB / 434.5 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.985e-05/0.1318, allocations: 15.91 kB / 434.5 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004401/0.1323, allocations: 211.6 kB / 434.7 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.641e-06/0.1323, allocations: 4 kB / 434.7 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.1323, allocations: 0 / 434.7 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.1323, allocations: 112 / 434.7 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002977/0.1326, allocations: 277.4 kB / 435 MB, free: 12.29 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.1326, allocations: 8 kB / 435 MB, free: 12.28 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001061/0.1327, allocations: 19.98 kB / 435 MB, free: 12.26 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.356e-06/0.1327, allocations: 0 / 435 MB, free: 12.26 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.39e-05/0.1327, allocations: 4 kB / 435 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.52e-06/0.1327, allocations: 4 kB / 435 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.1327, allocations: 0 / 435 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000385/0.1331, allocations: 235.5 kB / 435.2 MB, free: 12 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.489e-05/0.1332, allocations: 97 kB / 435.3 MB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.745e-05/0.1332, allocations: 4 kB / 435.3 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001444/0.1333, allocations: 11.98 kB / 435.3 MB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.407e-05/0.1334, allocations: 19.97 kB / 435.4 MB, free: 11.85 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.197e-05/0.1334, allocations: 4 kB / 435.4 MB, free: 11.85 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001328/0.1335, allocations: 144.7 kB / 435.5 MB, free: 11.71 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1335, allocations: 0 / 435.5 MB, free: 11.71 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002687/0.1338, allocations: 47.89 kB / 435.5 MB, free: 11.66 MB / 366.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.0007582/0.1346, allocations: 0.7693 MB / 436.3 MB, free: 10.86 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004092/0.135, allocations: 175.8 kB / 436.5 MB, free: 10.68 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.135, allocations: 0 / 436.5 MB, free: 10.68 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001627/0.1351, allocations: 75.89 kB / 436.6 MB, free: 10.61 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003202/0.1355, allocations: 37.66 kB / 436.6 MB, free: 10.57 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002788/0.1383, allocations: 2.186 MB / 438.8 MB, free: 8.254 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003733/0.1386, allocations: 0.7436 MB / 439.5 MB, free: 7.484 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001285/0.1388, allocations: 37.5 kB / 439.6 MB, free: 7.449 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.532e-05/0.1389, allocations: 51.42 kB / 439.6 MB, free: 7.402 MB / 366.1 MB Notification: Performance of SimCode: time 1.122e-06/0.1389, allocations: 4 kB / 439.6 MB, free: 7.398 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02805/0.1669, allocations: 4.174 MB / 443.8 MB, free: 3.297 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.949/8.116, allocations: 7.922 kB / 443.8 MB, free: 3.289 MB / 366.1 MB " [Timeout remaining time 652] (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 --stepSize=0.00198965 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_RealNetwork1.fmu > Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.720505673903972]