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.00142/0.00142, allocations: 132.4 kB / 17.8 MB, free: 5.219 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.001468/0.001468, allocations: 210.5 kB / 20.75 MB, free: 2.27 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.557/1.557, allocations: 230.4 MB / 254 MB, free: 15.16 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.001818/0.001818, allocations: 67.91 kB / 373 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.1075, allocations: 53.38 MB / 426.4 MB, free: 4.723 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003178/0.1107, allocations: 1.885 MB / 428.2 MB, free: 2.828 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001253/0.112, allocations: 0.6621 MB / 428.9 MB, free: 2.16 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001038/0.1121, allocations: 11.94 kB / 428.9 MB, free: 2.148 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001381/0.1122, allocations: 31.66 kB / 428.9 MB, free: 2.117 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001468/0.1124, allocations: 31.66 kB / 429 MB, free: 2.086 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00029/0.1126, allocations: 79.84 kB / 429.1 MB, free: 2.008 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002419/0.1129, allocations: 171.3 kB / 429.2 MB, free: 1.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001539/0.113, allocations: 44.3 kB / 429.3 MB, free: 1.797 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001685/0.1132, allocations: 87.62 kB / 429.3 MB, free: 1.711 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001435/0.1134, allocations: 79.61 kB / 429.4 MB, free: 1.633 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.022e-05/0.1134, allocations: 16 kB / 429.4 MB, free: 1.617 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.285e-05/0.1135, allocations: 23.98 kB / 429.5 MB, free: 1.594 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.951e-05/0.1135, allocations: 43.84 kB / 429.5 MB, free: 1.551 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.285e-05/0.1136, allocations: 87.47 kB / 429.6 MB, free: 1.465 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002779/0.1139, allocations: 191 kB / 429.8 MB, free: 1.277 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.1139, allocations: 0 / 429.8 MB, free: 1.277 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1139, allocations: 0 / 429.8 MB, free: 1.277 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.401e-06/0.1139, allocations: 0 / 429.8 MB, free: 1.277 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.000919/0.1148, allocations: 0.522 MB / 430.3 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.621e-05/0.1149, allocations: 8.031 kB / 430.3 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.331e-05/0.1149, allocations: 46.73 kB / 430.4 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000148/0.1151, allocations: 32.78 kB / 430.4 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002976/0.1154, allocations: 240 kB / 430.6 MB, free: 344 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.381e-05/0.1154, allocations: 16.64 kB / 430.6 MB, free: 328 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.314e-05/0.1154, allocations: 12.38 kB / 430.7 MB, free: 316 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003615/0.1158, allocations: 203.6 kB / 430.8 MB, free: 96 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.468e-06/0.1158, allocations: 0 / 430.8 MB, free: 96 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.028e-05/0.1158, allocations: 8 kB / 430.9 MB, free: 88 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.997e-05/0.1158, allocations: 4 kB / 430.9 MB, free: 84 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003224/0.1162, allocations: 147.8 kB / 431 MB, free: 15.94 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001099/0.1173, allocations: 0.7857 MB / 431.8 MB, free: 15.09 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003125/0.1176, allocations: 149.1 kB / 431.9 MB, free: 14.93 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001439/0.1177, allocations: 69.81 kB / 432 MB, free: 14.85 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.337e-05/0.1178, allocations: 11.98 kB / 432 MB, free: 14.84 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002554/0.118, allocations: 143 kB / 432.2 MB, free: 14.68 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 1.634e-06/0.118, allocations: 0 / 432.2 MB, free: 14.68 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.000581/0.1186, allocations: 265.6 kB / 432.4 MB, free: 14.42 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.535e-05/0.1187, allocations: 85.11 kB / 432.5 MB, free: 14.32 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002027/0.1189, allocations: 207.1 kB / 432.7 MB, free: 14.1 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.319e-05/0.1189, allocations: 25.7 kB / 432.7 MB, free: 14.07 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001064/0.119, allocations: 144.3 kB / 432.9 MB, free: 13.93 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.621e-05/0.119, allocations: 51.62 kB / 432.9 MB, free: 13.88 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.221e-05/0.1191, allocations: 37.7 kB / 433 MB, free: 13.83 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000161/0.1193, allocations: 338.8 kB / 433.3 MB, free: 13.49 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001532/0.1194, allocations: 71.95 kB / 433.4 MB, free: 13.42 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001897/0.1196, allocations: 126.8 kB / 433.5 MB, free: 13.27 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003319/0.1199, allocations: 194.7 kB / 433.7 MB, free: 13.06 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.1199, allocations: 4 kB / 433.7 MB, free: 13.05 MB / 366.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004446/0.1204, allocations: 249.2 kB / 433.9 MB, free: 12.8 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.529e-05/0.1204, allocations: 4 kB / 433.9 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.887e-06/0.1204, allocations: 4 kB / 433.9 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.43e-05/0.1204, allocations: 0 / 433.9 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001673/0.1206, allocations: 27.98 kB / 434 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.828e-06/0.1206, allocations: 11.92 kB / 434 MB, free: 12.76 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001593/0.1208, allocations: 27.88 kB / 434 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.69e-05/0.1208, allocations: 8.156 kB / 434 MB, free: 12.72 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.0001454/0.1209, allocations: 145.8 kB / 434.1 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.221e-05/0.121, allocations: 19.91 kB / 434.2 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004592/0.1214, allocations: 214.8 kB / 434.4 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.457e-06/0.1214, allocations: 0 / 434.4 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.1214, allocations: 4 kB / 434.4 MB, free: 12.33 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.283e-06/0.1214, allocations: 7.938 kB / 434.4 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000299/0.1217, allocations: 273.6 kB / 434.6 MB, free: 12.01 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.1217, allocations: 15.88 kB / 434.7 MB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001125/0.1218, allocations: 19.98 kB / 434.7 MB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.1219, allocations: 0 / 434.7 MB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.293e-05/0.1219, allocations: 0 / 434.7 MB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.929e-06/0.1219, allocations: 4 kB / 434.7 MB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.1219, allocations: 0.8594 kB / 434.7 MB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000422/0.1223, allocations: 237.6 kB / 434.9 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.971e-05/0.1224, allocations: 97 kB / 435 MB, free: 11.6 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.48e-05/0.1224, allocations: 0 / 435 MB, free: 11.6 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001342/0.1225, allocations: 15.98 kB / 435 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.853e-05/0.1226, allocations: 23.95 kB / 435.1 MB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.13e-05/0.1226, allocations: 4 kB / 435.1 MB, free: 11.56 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001356/0.1227, allocations: 144.6 kB / 435.2 MB, free: 11.42 MB / 366.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1227, allocations: 0 / 435.2 MB, free: 11.42 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002755/0.123, allocations: 47.89 kB / 435.2 MB, free: 11.37 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.0007743/0.1238, allocations: 0.7653 MB / 436 MB, free: 10.57 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003947/0.1242, allocations: 177.3 kB / 436.2 MB, free: 10.4 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1242, allocations: 0 / 436.2 MB, free: 10.4 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001706/0.1244, allocations: 75.89 kB / 436.3 MB, free: 10.32 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003353/0.1247, allocations: 35.97 kB / 436.3 MB, free: 10.29 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002848/0.1275, allocations: 2.19 MB / 438.5 MB, free: 7.965 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000378/0.1279, allocations: 0.7358 MB / 439.2 MB, free: 7.203 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001222/0.128, allocations: 33.52 kB / 439.3 MB, free: 7.172 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001066/0.1281, allocations: 59.42 kB / 439.3 MB, free: 7.117 MB / 366.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1281, allocations: 4 kB / 439.3 MB, free: 7.113 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02815/0.1563, allocations: 4.172 MB / 443.5 MB, free: 3.02 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.008/8.164, allocations: 7.922 kB / 443.5 MB, free: 3.012 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 & 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.00198965 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.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "Error: Could not read variable multiSwitch.u[1] in file Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1_res.csv. Warning: Get data of variable multiSwitch.u[1] from file Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1_res.csv failed! Error: Could not read variable multiSwitch.u[2] in file Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1_res.csv. Warning: Get data of variable multiSwitch.u[2] from file Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.0470538479276]