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.001283/0.001283, allocations: 111.1 kB / 20.44 MB, free: 1.352 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.001578/0.001578, allocations: 216.4 kB / 23.73 MB, free: 4.531 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.558/1.558, allocations: 230.5 MB / 257.4 MB, free: 7.75 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.00221/0.00221, allocations: 63.91 kB / 377.7 MB, free: 2.82 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3837/0.3859, allocations: 53.4 MB / 431.1 MB, free: 6.445 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003434/0.3893, allocations: 1.836 MB / 433 MB, free: 4.609 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001261/0.3906, allocations: 0.6193 MB / 433.6 MB, free: 3.984 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.505e-05/0.3907, allocations: 7.938 kB / 433.6 MB, free: 3.977 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001239/0.3908, allocations: 35.66 kB / 433.6 MB, free: 3.941 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001331/0.3909, allocations: 35.66 kB / 433.7 MB, free: 3.906 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002857/0.3912, allocations: 75.84 kB / 433.7 MB, free: 3.832 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002273/0.3914, allocations: 171.3 kB / 433.9 MB, free: 3.664 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001283/0.3916, allocations: 44.38 kB / 433.9 MB, free: 3.621 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000137/0.3917, allocations: 75.69 kB / 434 MB, free: 3.547 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001331/0.3918, allocations: 83.55 kB / 434.1 MB, free: 3.465 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.869e-05/0.3919, allocations: 12 kB / 434.1 MB, free: 3.453 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.813e-05/0.3919, allocations: 27.98 kB / 434.1 MB, free: 3.426 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.405e-05/0.392, allocations: 43.84 kB / 434.2 MB, free: 3.383 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.917e-05/0.3921, allocations: 67.61 kB / 434.2 MB, free: 3.316 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000272/0.3923, allocations: 192.8 kB / 434.4 MB, free: 3.129 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.571e-06/0.3923, allocations: 4 kB / 434.4 MB, free: 3.125 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.475e-06/0.3924, allocations: 0 / 434.4 MB, free: 3.125 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.077e-06/0.3924, allocations: 0 / 434.4 MB, free: 3.125 MB / 334.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.001002/0.3934, allocations: 457.4 kB / 434.9 MB, free: 2.645 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.82e-05/0.3934, allocations: 15.98 kB / 434.9 MB, free: 2.629 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.746e-05/0.3935, allocations: 46.73 kB / 434.9 MB, free: 2.574 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001742/0.3937, allocations: 32.78 kB / 435 MB, free: 2.543 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002961/0.3939, allocations: 174.8 kB / 435.1 MB, free: 2.348 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.852e-05/0.394, allocations: 16.64 kB / 435.2 MB, free: 2.332 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.622e-05/0.394, allocations: 12.38 kB / 435.2 MB, free: 2.32 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003765/0.3944, allocations: 211.5 kB / 435.4 MB, free: 2.098 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/0.3944, allocations: 0 / 435.4 MB, free: 2.098 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.749e-05/0.3944, allocations: 4 kB / 435.4 MB, free: 2.094 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.353e-05/0.3944, allocations: 4 kB / 435.4 MB, free: 2.09 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003205/0.3948, allocations: 143.8 kB / 435.5 MB, free: 1.949 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001052/0.3958, allocations: 0.7263 MB / 436.3 MB, free: 1.168 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003009/0.3961, allocations: 157 kB / 436.4 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00015/0.3963, allocations: 73.8 kB / 436.5 MB, free: 0.918 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.794e-05/0.3963, allocations: 4 kB / 436.5 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002726/0.3966, allocations: 144.1 kB / 436.6 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.212e-06/0.3966, allocations: 0 / 436.6 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005605/0.3971, allocations: 262.2 kB / 436.9 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.668e-05/0.3972, allocations: 85.09 kB / 437 MB, free: 404 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000234/0.3974, allocations: 211.1 kB / 437.2 MB, free: 184 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.992e-05/0.3975, allocations: 29.7 kB / 437.2 MB, free: 148 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001259/0.3976, allocations: 144.3 kB / 437.3 MB, free: 0 / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.793e-05/0.3977, allocations: 43.81 kB / 437.4 MB, free: 15.95 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.932e-05/0.3977, allocations: 41.7 kB / 437.4 MB, free: 15.91 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001565/0.3979, allocations: 338.6 kB / 437.8 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001572/0.398, allocations: 71.95 kB / 437.8 MB, free: 15.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002/0.3982, allocations: 125.9 kB / 437.9 MB, free: 15.36 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003406/0.3986, allocations: 206.7 kB / 438.2 MB, free: 15.13 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.3986, allocations: 0 / 438.2 MB, free: 15.13 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004161/0.399, allocations: 245.3 kB / 438.4 MB, free: 14.88 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.692e-05/0.399, allocations: 8 kB / 438.4 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.399, allocations: 7.938 kB / 438.4 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.02e-05/0.399, allocations: 4 kB / 438.4 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001541/0.3992, allocations: 27.98 kB / 438.4 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.195e-05/0.3992, allocations: 7.938 kB / 438.4 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001507/0.3994, allocations: 36.05 kB / 438.5 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.14e-05/0.3994, allocations: 12 kB / 438.5 MB, free: 14.78 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.0001564/0.3995, allocations: 141.7 kB / 438.6 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.508e-05/0.3996, allocations: 19.86 kB / 438.7 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004514/0.4, allocations: 210.9 kB / 438.9 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-06/0.4, allocations: 0 / 438.9 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.4, allocations: 4 kB / 438.9 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.4, allocations: 4 kB / 438.9 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002633/0.4003, allocations: 224.6 kB / 439.1 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.4003, allocations: 4 kB / 439.1 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001083/0.4004, allocations: 24.03 kB / 439.1 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.4004, allocations: 3.938 kB / 439.1 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.54e-05/0.4004, allocations: 4 kB / 439.1 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.059e-06/0.4004, allocations: 4 kB / 439.1 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.4004, allocations: 0 / 439.1 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004192/0.4009, allocations: 233.6 kB / 439.4 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.94e-05/0.4009, allocations: 15.91 kB / 439.4 MB, free: 13.83 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.136e-05/0.4009, allocations: 11.98 kB / 439.4 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001217/0.401, allocations: 11.98 kB / 439.4 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.265e-05/0.4011, allocations: 15.97 kB / 439.4 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.296e-05/0.4011, allocations: 4 kB / 439.4 MB, free: 13.79 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001357/0.4012, allocations: 152.6 kB / 439.6 MB, free: 13.64 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4012, allocations: 0 / 439.6 MB, free: 13.64 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002386/0.4015, allocations: 43.89 kB / 439.6 MB, free: 13.59 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.0007694/0.4023, allocations: 0.768 MB / 440.4 MB, free: 12.79 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003763/0.4026, allocations: 171.8 kB / 440.5 MB, free: 12.62 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.4026, allocations: 0 / 440.5 MB, free: 12.62 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001806/0.4028, allocations: 79.89 kB / 440.6 MB, free: 12.55 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003286/0.4031, allocations: 49.02 kB / 440.7 MB, free: 12.5 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002819/0.406, allocations: 2.185 MB / 442.8 MB, free: 10.17 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001277/0.4061, allocations: 124.9 kB / 443 MB, free: 10.03 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001137/0.4062, allocations: 33.61 kB / 443 MB, free: 10 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001058/0.4063, allocations: 63.41 kB / 443.1 MB, free: 9.941 MB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.4063, allocations: 0 / 443.1 MB, free: 9.941 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03459/0.4409, allocations: 4.876 MB / 447.9 MB, free: 5.199 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.78/12.22, allocations: 6.891 kB / 447.9 MB, free: 5.195 MB / 350.1 MB " [Timeout remaining time 648] (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/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.133672909811139]