Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008723/0.0008723, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008757/0.0008757, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8872/0.8872, allocations: 177.1 MB / 204.3 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.493e-06/1.493e-06, allocations: 0 / 324.5 MB, free: 15.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.708e-05/1.858e-05, allocations: 2.281 kB / 324.5 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.002157/0.002175, allocations: 1.839 MB / 326.4 MB, free: 14.11 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007963/0.002971, allocations: 0.6271 MB / 327 MB, free: 13.47 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.49e-05/0.003056, allocations: 11.94 kB / 327 MB, free: 13.46 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001122/0.003168, allocations: 35.61 kB / 327.1 MB, free: 13.43 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001212/0.00329, allocations: 35.59 kB / 327.1 MB, free: 13.39 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002512/0.003541, allocations: 79.72 kB / 327.2 MB, free: 13.31 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001738/0.003715, allocations: 175.9 kB / 327.3 MB, free: 13.14 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001306/0.003845, allocations: 52.33 kB / 327.4 MB, free: 13.09 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001507/0.003996, allocations: 99.72 kB / 327.5 MB, free: 12.99 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001132/0.004109, allocations: 67.78 kB / 327.6 MB, free: 12.93 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.202e-05/0.004131, allocations: 12 kB / 327.6 MB, free: 12.91 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.14e-05/0.004193, allocations: 27.94 kB / 327.6 MB, free: 12.89 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.713e-05/0.00425, allocations: 51.77 kB / 327.6 MB, free: 12.84 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.822e-05/0.004298, allocations: 51.83 kB / 327.7 MB, free: 12.79 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001968/0.004495, allocations: 191.3 kB / 327.9 MB, free: 12.6 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.894e-06/0.004497, allocations: 0 / 327.9 MB, free: 12.6 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.82e-07/0.004497, allocations: 0 / 327.9 MB, free: 12.6 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.108e-06/0.004502, allocations: 0 / 327.9 MB, free: 12.6 MB / 298.7 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.0008/0.005302, allocations: 456.6 kB / 328.3 MB, free: 12.12 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.368e-05/0.005335, allocations: 12.03 kB / 328.3 MB, free: 12.11 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.637e-05/0.005372, allocations: 50.67 kB / 328.4 MB, free: 12.05 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.315e-05/0.005465, allocations: 28.8 kB / 328.4 MB, free: 12.02 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000191/0.005656, allocations: 177.6 kB / 328.6 MB, free: 11.82 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.568e-05/0.005672, allocations: 16.64 kB / 328.6 MB, free: 11.81 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.619e-05/0.005688, allocations: 16.31 kB / 328.6 MB, free: 11.79 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002305/0.005918, allocations: 196.3 kB / 328.8 MB, free: 11.59 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.875e-06/0.005926, allocations: 4.188 kB / 328.8 MB, free: 11.58 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.315e-05/0.005939, allocations: 8.125 kB / 328.8 MB, free: 11.57 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.435e-05/0.005964, allocations: 7.984 kB / 328.8 MB, free: 11.57 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001826/0.006146, allocations: 143.8 kB / 329 MB, free: 11.43 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006543/0.0068, allocations: 0.7224 MB / 329.7 MB, free: 10.65 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001961/0.006996, allocations: 149.1 kB / 329.8 MB, free: 10.48 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.407e-05/0.007081, allocations: 77.73 kB / 329.9 MB, free: 10.4 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.104e-05/0.007112, allocations: 7.938 kB / 329.9 MB, free: 10.39 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001515/0.007263, allocations: 141 kB / 330.1 MB, free: 10.24 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 9.01e-07/0.007264, allocations: 0 / 330.1 MB, free: 10.24 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003444/0.007608, allocations: 265.7 kB / 330.3 MB, free: 9.973 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.051e-05/0.007649, allocations: 85.11 kB / 330.4 MB, free: 9.871 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001214/0.00777, allocations: 211.1 kB / 330.6 MB, free: 9.656 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.483e-05/0.007785, allocations: 33.7 kB / 330.7 MB, free: 9.617 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.373e-05/0.007849, allocations: 144.3 kB / 330.8 MB, free: 9.473 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.31e-05/0.007872, allocations: 39.64 kB / 330.8 MB, free: 9.434 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.176e-05/0.007924, allocations: 45.7 kB / 330.9 MB, free: 9.383 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.587e-05/0.008, allocations: 330.8 kB / 331.2 MB, free: 9.051 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.529e-05/0.008085, allocations: 67.95 kB / 331.3 MB, free: 8.984 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001015/0.008186, allocations: 138.2 kB / 331.4 MB, free: 8.828 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001856/0.008372, allocations: 198.7 kB / 331.6 MB, free: 8.609 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.008374, allocations: 0 / 331.6 MB, free: 8.609 MB / 298.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002418/0.008616, allocations: 249.2 kB / 331.8 MB, free: 8.359 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.17e-05/0.008628, allocations: 8 kB / 331.8 MB, free: 8.352 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.898e-06/0.008632, allocations: 0 / 331.8 MB, free: 8.352 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.202e-05/0.008644, allocations: 4 kB / 331.8 MB, free: 8.348 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.359e-05/0.008737, allocations: 39.91 kB / 331.9 MB, free: 8.309 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.43e-06/0.008743, allocations: 4 kB / 331.9 MB, free: 8.305 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.332e-05/0.008816, allocations: 28.06 kB / 331.9 MB, free: 8.277 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.221e-05/0.008828, allocations: 15.98 kB / 331.9 MB, free: 8.262 MB / 298.7 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 8.765e-05/0.008916, allocations: 133.8 kB / 332.1 MB, free: 8.121 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.86e-05/0.008934, allocations: 23.8 kB / 332.1 MB, free: 8.098 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002577/0.009192, allocations: 211.8 kB / 332.3 MB, free: 7.887 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.295e-06/0.009194, allocations: 0 / 332.3 MB, free: 7.887 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.009197, allocations: 0 / 332.3 MB, free: 7.887 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.009204, allocations: 11.98 kB / 332.3 MB, free: 7.875 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001574/0.009362, allocations: 224.6 kB / 332.5 MB, free: 7.613 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.009364, allocations: 3.938 kB / 332.5 MB, free: 7.609 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.911e-05/0.009413, allocations: 20.08 kB / 332.6 MB, free: 7.59 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.885e-06/0.009416, allocations: 8.047 kB / 332.6 MB, free: 7.582 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.042e-05/0.009426, allocations: 11.92 kB / 332.6 MB, free: 7.57 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.009428, allocations: 0 / 332.6 MB, free: 7.57 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.00943, allocations: 4 kB / 332.6 MB, free: 7.566 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000209/0.009639, allocations: 228.5 kB / 332.8 MB, free: 7.324 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.838e-05/0.009657, allocations: 19.78 kB / 332.8 MB, free: 7.305 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.596e-05/0.009673, allocations: 8 kB / 332.8 MB, free: 7.297 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.613e-05/0.009729, allocations: 19.97 kB / 332.8 MB, free: 7.277 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.435e-05/0.009774, allocations: 15.97 kB / 332.9 MB, free: 7.262 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.974e-06/0.009781, allocations: 4 kB / 332.9 MB, free: 7.258 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.265e-05/0.009863, allocations: 148.6 kB / 333 MB, free: 7.113 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.009863, allocations: 0 / 333 MB, free: 7.113 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001705/0.01003, allocations: 39.95 kB / 333 MB, free: 7.074 MB / 298.7 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.0004013/0.01044, allocations: 0.7693 MB / 333.8 MB, free: 6.273 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002198/0.01065, allocations: 163.8 kB / 334 MB, free: 6.113 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.243e-06/0.01066, allocations: 0 / 334 MB, free: 6.113 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.512e-05/0.01075, allocations: 79.89 kB / 334.1 MB, free: 6.035 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000207/0.01096, allocations: 35.97 kB / 334.1 MB, free: 6 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00188/0.01284, allocations: 2.187 MB / 336.3 MB, free: 3.672 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.595e-05/0.01291, allocations: 128.9 kB / 336.4 MB, free: 3.527 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.39e-05/0.01299, allocations: 33.61 kB / 336.4 MB, free: 3.492 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.685e-05/0.01306, allocations: 60.47 kB / 336.5 MB, free: 3.434 MB / 298.7 MB Notification: Performance of SimCode: time 5.91e-07/0.01306, allocations: 0 / 336.5 MB, free: 3.434 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01712/0.03018, allocations: 5.005 MB / 341.5 MB, free: 14.57 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.955/6.985, allocations: 7.922 kB / 341.5 MB, free: 14.57 MB / 314.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Blocks_Examples_RealNetwork1_fmu --startTime=0 --stopTime=10 --stepSize=0.00198965 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Blocks_Examples_RealNetwork1.fmu > Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 8.622524362057447]