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.001294/0.001294, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 14.72 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.001362/0.001362, allocations: 203.7 kB / 23.73 MB, free: 4.379 MB / 14.72 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 1.407/1.407, allocations: 230.6 MB / 257.5 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001484/0.001484, allocations: 47.92 kB / 377.7 MB, free: 2.949 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2494/0.2509, allocations: 53.37 MB / 431.1 MB, free: 6.605 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003206/0.2541, allocations: 1.844 MB / 432.9 MB, free: 4.762 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001261/0.2554, allocations: 0.6155 MB / 433.5 MB, free: 4.141 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001021/0.2555, allocations: 3.938 kB / 433.5 MB, free: 4.137 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001306/0.2556, allocations: 27.67 kB / 433.6 MB, free: 4.109 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001397/0.2558, allocations: 35.67 kB / 433.6 MB, free: 4.074 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002887/0.256, allocations: 75.84 kB / 433.7 MB, free: 4 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002433/0.2563, allocations: 179.3 kB / 433.8 MB, free: 3.824 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001537/0.2564, allocations: 48.36 kB / 433.9 MB, free: 3.777 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001683/0.2566, allocations: 83.64 kB / 434 MB, free: 3.695 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000147/0.2568, allocations: 71.62 kB / 434 MB, free: 3.625 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.048e-05/0.2568, allocations: 16 kB / 434.1 MB, free: 3.609 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.54e-05/0.2569, allocations: 23.98 kB / 434.1 MB, free: 3.586 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.789e-05/0.2569, allocations: 51.83 kB / 434.1 MB, free: 3.535 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.828e-05/0.257, allocations: 71.59 kB / 434.2 MB, free: 3.465 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002672/0.2573, allocations: 192.9 kB / 434.4 MB, free: 3.277 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.645e-06/0.2573, allocations: 0 / 434.4 MB, free: 3.277 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2573, allocations: 0 / 434.4 MB, free: 3.277 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.13e-06/0.2573, allocations: 0 / 434.4 MB, free: 3.277 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.0008725/0.2582, allocations: 445.5 kB / 434.8 MB, free: 2.809 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.618e-05/0.2582, allocations: 12.03 kB / 434.8 MB, free: 2.797 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.878e-05/0.2583, allocations: 50.73 kB / 434.9 MB, free: 2.738 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001721/0.2585, allocations: 32.78 kB / 434.9 MB, free: 2.707 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002806/0.2587, allocations: 183.4 kB / 435.1 MB, free: 2.504 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.915e-05/0.2588, allocations: 12.66 kB / 435.1 MB, free: 2.492 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.971e-05/0.2588, allocations: 16.38 kB / 435.1 MB, free: 2.477 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003777/0.2592, allocations: 207.8 kB / 435.3 MB, free: 2.258 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.02e-05/0.2592, allocations: 0 / 435.3 MB, free: 2.258 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.821e-05/0.2592, allocations: 4 kB / 435.3 MB, free: 2.254 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.034e-05/0.2592, allocations: 12 kB / 435.3 MB, free: 2.242 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000316/0.2595, allocations: 143.8 kB / 435.5 MB, free: 2.102 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001106/0.2606, allocations: 0.7263 MB / 436.2 MB, free: 1.32 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003301/0.261, allocations: 161.1 kB / 436.4 MB, free: 1.145 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001438/0.2611, allocations: 69.8 kB / 436.4 MB, free: 1.07 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.945e-05/0.2611, allocations: 7.984 kB / 436.4 MB, free: 1.062 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002669/0.2614, allocations: 141 kB / 436.6 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.373e-06/0.2614, allocations: 4 kB / 436.6 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005854/0.262, allocations: 257.7 kB / 436.8 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.073e-05/0.2621, allocations: 77.11 kB / 436.9 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002365/0.2623, allocations: 219.1 kB / 437.1 MB, free: 336 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.837e-05/0.2623, allocations: 29.7 kB / 437.2 MB, free: 300 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001094/0.2624, allocations: 144.3 kB / 437.3 MB, free: 152 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.008e-05/0.2625, allocations: 39.64 kB / 437.3 MB, free: 112 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.912e-05/0.2625, allocations: 41.7 kB / 437.4 MB, free: 64 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001743/0.2627, allocations: 342.8 kB / 437.7 MB, free: 15.72 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001528/0.2629, allocations: 67.95 kB / 437.8 MB, free: 15.65 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001946/0.2631, allocations: 128.4 kB / 437.9 MB, free: 15.5 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00033/0.2634, allocations: 198.7 kB / 438.1 MB, free: 15.29 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.2634, allocations: 0 / 438.1 MB, free: 15.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004296/0.2638, allocations: 249.3 kB / 438.3 MB, free: 15.04 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.57e-05/0.2638, allocations: 8 kB / 438.3 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.2638, allocations: 0 / 438.3 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.448e-05/0.2639, allocations: 4.094 kB / 438.4 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001658/0.264, allocations: 35.91 kB / 438.4 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.498e-06/0.264, allocations: 7.938 kB / 438.4 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001541/0.2642, allocations: 27.88 kB / 438.4 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.039e-05/0.2642, allocations: 12 kB / 438.4 MB, free: 14.94 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.0001443/0.2644, allocations: 145.9 kB / 438.6 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.204e-05/0.2644, allocations: 23.8 kB / 438.6 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004395/0.2648, allocations: 211.6 kB / 438.8 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.711e-06/0.2648, allocations: 4 kB / 438.8 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.2648, allocations: 0 / 438.8 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.753e-06/0.2648, allocations: 3.984 kB / 438.8 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002555/0.2651, allocations: 224.6 kB / 439 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.2651, allocations: 3.938 kB / 439 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001107/0.2652, allocations: 19.98 kB / 439.1 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.987e-06/0.2652, allocations: 8 kB / 439.1 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.434e-05/0.2652, allocations: 4 kB / 439.1 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.51e-06/0.2652, allocations: 7.984 kB / 439.1 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.2652, allocations: 0 / 439.1 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003955/0.2656, allocations: 237.7 kB / 439.3 MB, free: 13.99 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.011e-05/0.2657, allocations: 11.91 kB / 439.3 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.024e-05/0.2657, allocations: 8 kB / 439.3 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001309/0.2658, allocations: 15.97 kB / 439.3 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.84e-05/0.2659, allocations: 19.98 kB / 439.4 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.332e-05/0.2659, allocations: 3.984 kB / 439.4 MB, free: 13.93 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000141/0.266, allocations: 152.6 kB / 439.5 MB, free: 13.78 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.266, allocations: 0 / 439.5 MB, free: 13.78 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002587/0.2663, allocations: 39.89 kB / 439.6 MB, free: 13.74 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.0007225/0.267, allocations: 0.7679 MB / 440.3 MB, free: 12.94 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003716/0.2674, allocations: 167.9 kB / 440.5 MB, free: 12.78 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.319e-06/0.2674, allocations: 4 kB / 440.5 MB, free: 12.77 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001651/0.2676, allocations: 71.91 kB / 440.6 MB, free: 12.7 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003306/0.2679, allocations: 48.02 kB / 440.6 MB, free: 12.66 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003306/0.2712, allocations: 2.184 MB / 442.8 MB, free: 10.33 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001772/0.2714, allocations: 128.9 kB / 442.9 MB, free: 10.18 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001584/0.2715, allocations: 37.72 kB / 443 MB, free: 10.15 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001342/0.2717, allocations: 59.36 kB / 443 MB, free: 10.09 MB / 350.1 MB Notification: Performance of SimCode: time 6.01e-07/0.2717, allocations: 0 / 443 MB, free: 10.09 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03679/0.3085, allocations: 4.929 MB / 447.9 MB, free: 5.336 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.51/10.82, allocations: 15.28 kB / 448 MB, free: 5.324 MB / 350.1 MB " [Timeout remaining time 649] (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/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_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: 13.150711160007631]