Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001821/0.001821, allocations: 116 kB / 18.45 MB, free: 4.625 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.002106/0.002106, allocations: 194.9 kB / 21.4 MB, free: 1.688 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.548/1.548, allocations: 207.6 MB / 231.8 MB, free: 4.098 MB / 174.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00163/0.00163, allocations: 55.92 kB / 342.2 MB, free: 10.05 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1071, allocations: 49.12 MB / 391.4 MB, free: 8.762 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003427/0.1105, allocations: 1.863 MB / 393.2 MB, free: 6.887 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001247/0.1118, allocations: 0.6396 MB / 393.9 MB, free: 6.238 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001097/0.1119, allocations: 7.938 kB / 393.9 MB, free: 6.23 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001441/0.112, allocations: 23.73 kB / 393.9 MB, free: 6.207 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000158/0.1122, allocations: 35.66 kB / 393.9 MB, free: 6.172 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002887/0.1125, allocations: 75.78 kB / 394 MB, free: 6.098 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002513/0.1127, allocations: 159.4 kB / 394.2 MB, free: 5.941 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001778/0.1129, allocations: 69.42 kB / 394.2 MB, free: 5.875 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001238/0.113, allocations: 71.66 kB / 394.3 MB, free: 5.805 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001634/0.1132, allocations: 83.59 kB / 394.4 MB, free: 5.723 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.949e-05/0.1132, allocations: 12 kB / 394.4 MB, free: 5.711 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.374e-05/0.1133, allocations: 20 kB / 394.4 MB, free: 5.691 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.384e-05/0.1134, allocations: 47.72 kB / 394.5 MB, free: 5.645 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.115e-05/0.1135, allocations: 75.53 kB / 394.5 MB, free: 5.57 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002889/0.1138, allocations: 191 kB / 394.7 MB, free: 5.383 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.843e-06/0.1138, allocations: 4 kB / 394.7 MB, free: 5.379 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.1138, allocations: 0 / 394.7 MB, free: 5.379 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.072e-06/0.1138, allocations: 4 kB / 394.7 MB, free: 5.375 MB / 318.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.0009964/0.1148, allocations: 0.5141 MB / 395.2 MB, free: 4.812 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.248e-05/0.1148, allocations: 8.031 kB / 395.2 MB, free: 4.805 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.648e-05/0.1149, allocations: 46.73 kB / 395.3 MB, free: 4.75 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.309e-05/0.1149, allocations: 24.8 kB / 395.3 MB, free: 4.727 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003345/0.1153, allocations: 239.9 kB / 395.5 MB, free: 4.453 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.41e-05/0.1153, allocations: 16.66 kB / 395.6 MB, free: 4.438 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.421e-05/0.1153, allocations: 16.36 kB / 395.6 MB, free: 4.422 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003811/0.1157, allocations: 195.1 kB / 395.8 MB, free: 4.215 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/0.1157, allocations: 0 / 395.8 MB, free: 4.215 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.025e-05/0.1157, allocations: 8 kB / 395.8 MB, free: 4.207 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.343e-05/0.1158, allocations: 11.98 kB / 395.8 MB, free: 4.195 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003213/0.1161, allocations: 147.8 kB / 395.9 MB, free: 4.051 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001178/0.1173, allocations: 0.7663 MB / 396.7 MB, free: 3.223 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003254/0.1176, allocations: 161 kB / 396.9 MB, free: 3.047 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001508/0.1177, allocations: 69.8 kB / 396.9 MB, free: 2.973 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.937e-05/0.1178, allocations: 8 kB / 396.9 MB, free: 2.965 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002553/0.118, allocations: 145 kB / 397.1 MB, free: 2.805 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.382e-06/0.118, allocations: 0 / 397.1 MB, free: 2.805 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005895/0.1186, allocations: 253.7 kB / 397.3 MB, free: 2.551 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.34e-05/0.1187, allocations: 89.11 kB / 397.4 MB, free: 2.445 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002101/0.1189, allocations: 202.9 kB / 397.6 MB, free: 2.238 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.726e-05/0.1189, allocations: 29.7 kB / 397.6 MB, free: 2.203 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001241/0.1191, allocations: 144.3 kB / 397.8 MB, free: 2.059 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.198e-05/0.1191, allocations: 39.64 kB / 397.8 MB, free: 2.02 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.256e-05/0.1192, allocations: 41.7 kB / 397.9 MB, free: 1.973 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001821/0.1194, allocations: 338.8 kB / 398.2 MB, free: 1.633 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001668/0.1195, allocations: 75.95 kB / 398.3 MB, free: 1.559 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001831/0.1197, allocations: 118.7 kB / 398.4 MB, free: 1.418 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003465/0.1201, allocations: 210.6 kB / 398.6 MB, free: 1.188 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.1201, allocations: 0 / 398.6 MB, free: 1.188 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004377/0.1205, allocations: 241.9 kB / 398.8 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.719e-05/0.1205, allocations: 8 kB / 398.8 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.693e-06/0.1205, allocations: 7.938 kB / 398.8 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.833e-05/0.1205, allocations: 4 kB / 398.8 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001695/0.1207, allocations: 31.97 kB / 398.9 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.177e-05/0.1207, allocations: 8.016 kB / 398.9 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001488/0.1209, allocations: 31.83 kB / 398.9 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.093e-05/0.1209, allocations: 20.17 kB / 398.9 MB, free: 0.8359 MB / 318.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.000165/0.1211, allocations: 145.7 kB / 399.1 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.239e-05/0.1211, allocations: 20.02 kB / 399.1 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004483/0.1216, allocations: 218.8 kB / 399.3 MB, free: 452 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.1216, allocations: 0 / 399.3 MB, free: 452 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.1216, allocations: 0 / 399.3 MB, free: 452 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.276e-06/0.1216, allocations: 7.984 kB / 399.3 MB, free: 444 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002875/0.1219, allocations: 273.4 kB / 399.6 MB, free: 120 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.1219, allocations: 0 / 399.6 MB, free: 120 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001386/0.122, allocations: 23.92 kB / 399.6 MB, free: 96 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.592e-06/0.122, allocations: 4 kB / 399.6 MB, free: 92 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.18e-05/0.122, allocations: 0 / 399.6 MB, free: 92 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.512e-06/0.122, allocations: 0 / 399.6 MB, free: 92 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.122, allocations: 0 / 399.6 MB, free: 92 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004193/0.1224, allocations: 241.6 kB / 399.8 MB, free: 15.83 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.373e-05/0.1225, allocations: 96.95 kB / 399.9 MB, free: 15.72 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.769e-05/0.1225, allocations: 4 kB / 399.9 MB, free: 15.71 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001241/0.1227, allocations: 15.98 kB / 400 MB, free: 15.7 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.744e-05/0.1227, allocations: 19.97 kB / 400 MB, free: 15.68 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.072e-05/0.1228, allocations: 4 kB / 400 MB, free: 15.68 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001315/0.1229, allocations: 144.4 kB / 400.1 MB, free: 15.54 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1229, allocations: 8 kB / 400.1 MB, free: 15.53 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002598/0.1231, allocations: 35.94 kB / 400.2 MB, free: 15.49 MB / 334.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.0007836/0.1239, allocations: 0.7692 MB / 400.9 MB, free: 14.69 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003936/0.1243, allocations: 171.7 kB / 401.1 MB, free: 14.52 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.1243, allocations: 0 / 401.1 MB, free: 14.52 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001693/0.1245, allocations: 79.89 kB / 401.2 MB, free: 14.45 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003242/0.1248, allocations: 43.88 kB / 401.2 MB, free: 14.4 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002824/0.1276, allocations: 2.17 MB / 403.4 MB, free: 12.09 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004187/0.1281, allocations: 0.7397 MB / 404.1 MB, free: 11.33 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001098/0.1282, allocations: 37.62 kB / 404.2 MB, free: 11.29 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.679e-05/0.1283, allocations: 63.36 kB / 404.2 MB, free: 11.23 MB / 334.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1283, allocations: 0 / 404.2 MB, free: 11.23 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02806/0.1563, allocations: 4.133 MB / 408.4 MB, free: 7.047 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.04/8.196, allocations: 15.94 kB / 408.4 MB, free: 7.031 MB / 334.1 MB " [Timeout remaining time 652] (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_RealNetwork1_fmu --startTime=0 --stopTime=10 --stepSize=0.00198965 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_RealNetwork1.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.73640130320564]