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.001342/0.001342, allocations: 112.7 kB / 20.43 MB, free: 1.453 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.001394/0.001394, allocations: 214 kB / 23.74 MB, free: 4.66 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.391/1.391, allocations: 230.5 MB / 257.4 MB, free: 7.996 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.001831/0.001831, allocations: 59.91 kB / 377.8 MB, free: 3.027 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2184/0.2202, allocations: 53.41 MB / 431.2 MB, free: 6.988 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.002977/0.2232, allocations: 1.898 MB / 433.1 MB, free: 5.086 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001122/0.2243, allocations: 0.6738 MB / 433.7 MB, free: 4.406 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.884e-05/0.2244, allocations: 4 kB / 433.7 MB, free: 4.402 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001153/0.2245, allocations: 27.67 kB / 433.8 MB, free: 4.375 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001293/0.2247, allocations: 35.66 kB / 433.8 MB, free: 4.34 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002726/0.2249, allocations: 75.8 kB / 433.9 MB, free: 4.266 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002304/0.2252, allocations: 171.4 kB / 434.1 MB, free: 4.098 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001475/0.2253, allocations: 52.56 kB / 434.1 MB, free: 4.043 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001514/0.2255, allocations: 75.64 kB / 434.2 MB, free: 3.969 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001503/0.2256, allocations: 79.62 kB / 434.3 MB, free: 3.891 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.678e-05/0.2256, allocations: 12 kB / 434.3 MB, free: 3.879 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.486e-05/0.2257, allocations: 27.98 kB / 434.3 MB, free: 3.852 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.298e-05/0.2258, allocations: 47.83 kB / 434.3 MB, free: 3.805 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.213e-05/0.2259, allocations: 87.41 kB / 434.4 MB, free: 3.719 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002592/0.2261, allocations: 191.8 kB / 434.6 MB, free: 3.539 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.2261, allocations: 0 / 434.6 MB, free: 3.539 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.2261, allocations: 0 / 434.6 MB, free: 3.539 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.047e-06/0.2261, allocations: 4 kB / 434.6 MB, free: 3.535 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.0008185/0.227, allocations: 449.5 kB / 435.1 MB, free: 3.062 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.401e-05/0.227, allocations: 11.97 kB / 435.1 MB, free: 3.051 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.648e-05/0.227, allocations: 46.73 kB / 435.1 MB, free: 2.996 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001391/0.2272, allocations: 32.78 kB / 435.1 MB, free: 2.965 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002658/0.2275, allocations: 186.8 kB / 435.3 MB, free: 2.758 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.823e-05/0.2275, allocations: 8.656 kB / 435.3 MB, free: 2.75 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.841e-05/0.2275, allocations: 16.38 kB / 435.4 MB, free: 2.734 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003479/0.2278, allocations: 203.5 kB / 435.6 MB, free: 2.52 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.718e-06/0.2279, allocations: 0 / 435.6 MB, free: 2.52 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.538e-05/0.2279, allocations: 4 kB / 435.6 MB, free: 2.516 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.7e-05/0.2279, allocations: 8 kB / 435.6 MB, free: 2.508 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002915/0.2282, allocations: 143.8 kB / 435.7 MB, free: 2.367 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001072/0.2293, allocations: 0.7652 MB / 436.5 MB, free: 1.547 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003076/0.2296, allocations: 157 kB / 436.6 MB, free: 1.375 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001391/0.2297, allocations: 65.81 kB / 436.7 MB, free: 1.305 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.575e-05/0.2297, allocations: 11.98 kB / 436.7 MB, free: 1.293 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002418/0.23, allocations: 141 kB / 436.8 MB, free: 1.137 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.192e-06/0.23, allocations: 0 / 436.8 MB, free: 1.137 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.000563/0.2305, allocations: 262.2 kB / 437.1 MB, free: 0.875 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.196e-05/0.2306, allocations: 81.11 kB / 437.2 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001927/0.2308, allocations: 204.2 kB / 437.4 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.696e-05/0.2308, allocations: 33.7 kB / 437.4 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.929e-05/0.2309, allocations: 140.3 kB / 437.5 MB, free: 400 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.219e-05/0.231, allocations: 51.62 kB / 437.6 MB, free: 348 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.514e-05/0.231, allocations: 45.64 kB / 437.6 MB, free: 296 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000147/0.2312, allocations: 334.8 kB / 438 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001452/0.2313, allocations: 71.95 kB / 438 MB, free: 15.88 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001782/0.2315, allocations: 121.9 kB / 438.2 MB, free: 15.74 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003166/0.2318, allocations: 210.7 kB / 438.4 MB, free: 15.51 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.2318, allocations: 0 / 438.4 MB, free: 15.51 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004149/0.2322, allocations: 249.3 kB / 438.6 MB, free: 15.26 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.355e-05/0.2322, allocations: 6.188 kB / 438.6 MB, free: 15.26 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.132e-06/0.2322, allocations: 4 kB / 438.6 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.203e-05/0.2323, allocations: 112 / 438.6 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001537/0.2324, allocations: 39.86 kB / 438.6 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.985e-06/0.2324, allocations: 3.984 kB / 438.7 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001464/0.2326, allocations: 32.06 kB / 438.7 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.282e-05/0.2326, allocations: 8 kB / 438.7 MB, free: 15.17 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.0001282/0.2327, allocations: 145.8 kB / 438.8 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.842e-05/0.2327, allocations: 19.84 kB / 438.9 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004086/0.2331, allocations: 210.9 kB / 439.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.469e-06/0.2331, allocations: 4 kB / 439.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.965e-06/0.2331, allocations: 0 / 439.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.2332, allocations: 0 / 439.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002521/0.2334, allocations: 252.4 kB / 439.3 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.2334, allocations: 0 / 439.3 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001054/0.2335, allocations: 23.98 kB / 439.3 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.2335, allocations: 0 / 439.3 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.288e-05/0.2335, allocations: 4 kB / 439.3 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.2335, allocations: 0 / 439.3 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.2335, allocations: 0 / 439.3 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003689/0.2339, allocations: 240.2 kB / 439.6 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.834e-05/0.2339, allocations: 19.89 kB / 439.6 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.281e-05/0.2339, allocations: 0 / 439.6 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001268/0.2341, allocations: 19.98 kB / 439.6 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.374e-05/0.2341, allocations: 11.97 kB / 439.6 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.795e-05/0.2341, allocations: 8 kB / 439.6 MB, free: 14.16 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000144/0.2343, allocations: 147.5 kB / 439.8 MB, free: 14.01 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2343, allocations: 4 kB / 439.8 MB, free: 14.01 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002464/0.2345, allocations: 43.89 kB / 439.8 MB, free: 13.96 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.0007275/0.2353, allocations: 0.7603 MB / 440.6 MB, free: 13.17 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003591/0.2356, allocations: 171.7 kB / 440.7 MB, free: 13 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.2356, allocations: 0 / 440.7 MB, free: 13 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001718/0.2358, allocations: 83.88 kB / 440.8 MB, free: 12.92 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003075/0.2361, allocations: 48.78 kB / 440.9 MB, free: 12.88 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002583/0.2387, allocations: 2.189 MB / 443.1 MB, free: 10.54 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003457/0.239, allocations: 0.7436 MB / 443.8 MB, free: 9.773 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.927e-05/0.2391, allocations: 29.62 kB / 443.8 MB, free: 9.746 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.236e-05/0.2392, allocations: 63.41 kB / 443.9 MB, free: 9.688 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.2392, allocations: 0 / 443.9 MB, free: 9.688 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02956/0.2688, allocations: 4.367 MB / 448.3 MB, free: 5.438 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.07/11.34, allocations: 8.047 kB / 448.3 MB, free: 5.43 MB / 350.1 MB " [Timeout remaining time 649] (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: 13.727522379020229]