Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001204/0.001204, allocations: 123.9 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001224/0.001224, allocations: 185.2 kB / 20.73 MB, free: 2.332 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.384/1.384, allocations: 225.6 MB / 249.1 MB, free: 3.613 MB / 190.1 MB " [Timeout remaining time 178] 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.RealNetwork1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001511/0.001511, allocations: 47.92 kB / 365.6 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09914/0.1007, allocations: 52.14 MB / 417.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003198/0.1038, allocations: 1.872 MB / 419.6 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001105/0.105, allocations: 0.5882 MB / 420.2 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.828e-05/0.105, allocations: 4 kB / 420.2 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000151/0.1052, allocations: 35.59 kB / 420.3 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001475/0.1053, allocations: 39.66 kB / 420.3 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002709/0.1056, allocations: 63.86 kB / 420.4 MB, free: 10 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002423/0.1059, allocations: 167.4 kB / 420.5 MB, free: 9.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001727/0.106, allocations: 57.64 kB / 420.6 MB, free: 9.781 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001238/0.1062, allocations: 67.72 kB / 420.7 MB, free: 9.715 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001492/0.1063, allocations: 83.55 kB / 420.7 MB, free: 9.633 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.987e-05/0.1063, allocations: 12 kB / 420.8 MB, free: 9.621 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.102e-05/0.1064, allocations: 27.92 kB / 420.8 MB, free: 9.594 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.598e-05/0.1065, allocations: 43.84 kB / 420.8 MB, free: 9.551 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.387e-05/0.1066, allocations: 75.53 kB / 420.9 MB, free: 9.477 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002766/0.1069, allocations: 187 kB / 421.1 MB, free: 9.293 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.1069, allocations: 4 kB / 421.1 MB, free: 9.289 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1069, allocations: 4 kB / 421.1 MB, free: 9.285 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.331e-06/0.1069, allocations: 4 kB / 421.1 MB, free: 9.281 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.0009537/0.1078, allocations: 0.5026 MB / 421.6 MB, free: 8.727 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.913e-05/0.1079, allocations: 8.031 kB / 421.6 MB, free: 8.719 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.415e-05/0.1079, allocations: 46.73 kB / 421.6 MB, free: 8.664 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.382e-05/0.108, allocations: 28.78 kB / 421.7 MB, free: 8.637 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003173/0.1083, allocations: 243.8 kB / 421.9 MB, free: 8.359 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.022e-05/0.1083, allocations: 20.41 kB / 421.9 MB, free: 8.34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.819e-05/0.1083, allocations: 12 kB / 421.9 MB, free: 8.328 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003787/0.1087, allocations: 202.8 kB / 422.1 MB, free: 8.113 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.103e-05/0.1087, allocations: 0 / 422.1 MB, free: 8.113 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.493e-05/0.1088, allocations: 8 kB / 422.2 MB, free: 8.105 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.123e-05/0.1088, allocations: 11.94 kB / 422.2 MB, free: 8.094 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003177/0.1091, allocations: 143.8 kB / 422.3 MB, free: 7.953 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001149/0.1102, allocations: 0.7702 MB / 423.1 MB, free: 7.121 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003152/0.1106, allocations: 153 kB / 423.2 MB, free: 6.953 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001497/0.1107, allocations: 73.8 kB / 423.3 MB, free: 6.875 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.785e-05/0.1108, allocations: 8 kB / 423.3 MB, free: 6.867 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002711/0.111, allocations: 149.1 kB / 423.4 MB, free: 6.703 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.213e-06/0.111, allocations: 0 / 423.4 MB, free: 6.703 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005697/0.1116, allocations: 253.5 kB / 423.7 MB, free: 6.449 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.816e-05/0.1117, allocations: 93.09 kB / 423.8 MB, free: 6.34 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001949/0.1119, allocations: 199 kB / 424 MB, free: 6.133 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.773e-05/0.1119, allocations: 29.7 kB / 424 MB, free: 6.098 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001092/0.112, allocations: 144.3 kB / 424.2 MB, free: 5.953 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.064e-05/0.112, allocations: 43.58 kB / 424.2 MB, free: 5.91 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.232e-05/0.1121, allocations: 41.7 kB / 424.2 MB, free: 5.863 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001579/0.1123, allocations: 334.8 kB / 424.6 MB, free: 5.527 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001506/0.1124, allocations: 71.95 kB / 424.6 MB, free: 5.457 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002/0.1126, allocations: 126.8 kB / 424.8 MB, free: 5.309 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003559/0.113, allocations: 206.7 kB / 425 MB, free: 5.082 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.669e-06/0.113, allocations: 4 kB / 425 MB, free: 5.078 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004453/0.1134, allocations: 241.9 kB / 425.2 MB, free: 4.836 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.952e-05/0.1134, allocations: 10.5 kB / 425.2 MB, free: 4.828 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.1134, allocations: 0 / 425.2 MB, free: 4.828 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.992e-05/0.1135, allocations: 7.984 kB / 425.2 MB, free: 4.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001709/0.1136, allocations: 31.92 kB / 425.2 MB, free: 4.789 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.468e-06/0.1136, allocations: 4 kB / 425.3 MB, free: 4.785 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000153/0.1138, allocations: 32.16 kB / 425.3 MB, free: 4.754 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.12e-05/0.1138, allocations: 23.95 kB / 425.3 MB, free: 4.73 MB / 350.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.0001413/0.114, allocations: 134.3 kB / 425.4 MB, free: 4.59 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.617e-05/0.114, allocations: 23.89 kB / 425.5 MB, free: 4.566 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004494/0.1144, allocations: 222.8 kB / 425.7 MB, free: 4.34 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.1145, allocations: 0 / 425.7 MB, free: 4.34 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.1145, allocations: 0 / 425.7 MB, free: 4.34 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.1145, allocations: 0 / 425.7 MB, free: 4.34 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002933/0.1148, allocations: 277.5 kB / 425.9 MB, free: 4.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.1148, allocations: 3.938 kB / 426 MB, free: 4.016 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001117/0.1149, allocations: 23.92 kB / 426 MB, free: 3.992 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.478e-06/0.1149, allocations: 3.984 kB / 426 MB, free: 3.988 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.336e-05/0.1149, allocations: 4 kB / 426 MB, free: 3.984 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/0.1149, allocations: 0 / 426 MB, free: 3.984 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.1149, allocations: 0 / 426 MB, free: 3.984 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000391/0.1153, allocations: 236 kB / 426.2 MB, free: 3.734 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.207e-05/0.1153, allocations: 92.95 kB / 426.3 MB, free: 3.625 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.504e-05/0.1154, allocations: 0 / 426.3 MB, free: 3.625 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001276/0.1155, allocations: 23.97 kB / 426.3 MB, free: 3.602 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.461e-05/0.1156, allocations: 19.92 kB / 426.3 MB, free: 3.582 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.247e-05/0.1156, allocations: 7.938 kB / 426.4 MB, free: 3.574 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001294/0.1157, allocations: 148.4 kB / 426.5 MB, free: 3.43 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1157, allocations: 4 kB / 426.5 MB, free: 3.426 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000262/0.116, allocations: 39.95 kB / 426.5 MB, free: 3.387 MB / 350.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.000749/0.1167, allocations: 0.7599 MB / 427.3 MB, free: 2.598 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003784/0.1171, allocations: 163.8 kB / 427.5 MB, free: 2.438 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.1171, allocations: 0 / 427.5 MB, free: 2.438 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001671/0.1173, allocations: 79.89 kB / 427.5 MB, free: 2.359 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000315/0.1176, allocations: 40.09 kB / 427.6 MB, free: 2.32 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002642/0.1202, allocations: 2.188 MB / 429.8 MB, free: 0 / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003728/0.1206, allocations: 0.7398 MB / 430.5 MB, free: 15.23 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001154/0.1207, allocations: 37.52 kB / 430.5 MB, free: 15.2 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.25e-05/0.1208, allocations: 59.42 kB / 430.6 MB, free: 15.14 MB / 366.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1208, allocations: 0 / 430.6 MB, free: 15.14 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02681/0.1476, allocations: 4.133 MB / 434.7 MB, free: 11.1 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.72/7.868, allocations: 7.656 kB / 434.7 MB, free: 11.09 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_RealNetwork1_fmu --startTime=0 --stopTime=10 --stepSize=0.00198965 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_RealNetwork1.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.311201286967844]