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.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.001402/0.001402, allocations: 107.6 kB / 21.18 MB, free: 452 kB / 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.001464/0.001464, allocations: 216.1 kB / 24.47 MB, free: 3.777 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.402/1.402, allocations: 207.7 MB / 235.3 MB, free: 9.809 MB / 190.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.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_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.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001969/0.001969, allocations: 61.62 kB / 347.2 MB, free: 9.91 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2378/0.2398, allocations: 49.16 MB / 396.3 MB, free: 8.867 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.002644/0.2424, allocations: 1.791 MB / 398.1 MB, free: 7.664 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009677/0.2434, allocations: 0.6075 MB / 398.7 MB, free: 7.254 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.556e-05/0.2435, allocations: 6.594 kB / 398.7 MB, free: 7.25 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001281/0.2436, allocations: 30.48 kB / 398.8 MB, free: 7.227 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001278/0.2438, allocations: 37.45 kB / 398.8 MB, free: 7.199 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002465/0.244, allocations: 67.27 kB / 398.9 MB, free: 7.164 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001888/0.2442, allocations: 164.4 kB / 399 MB, free: 7.09 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001423/0.2443, allocations: 51.59 kB / 399.1 MB, free: 7.062 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001044/0.2444, allocations: 77 kB / 399.2 MB, free: 7.023 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000132/0.2446, allocations: 72.89 kB / 399.2 MB, free: 6.992 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.978e-05/0.2446, allocations: 11.44 kB / 399.2 MB, free: 6.992 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.014e-05/0.2447, allocations: 22.58 kB / 399.3 MB, free: 6.988 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.868e-05/0.2447, allocations: 46.34 kB / 399.3 MB, free: 6.961 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.609e-05/0.2448, allocations: 69.45 kB / 399.4 MB, free: 6.918 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002407/0.245, allocations: 189.9 kB / 399.6 MB, free: 6.84 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.407e-06/0.245, allocations: 0 / 399.6 MB, free: 6.84 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.245, allocations: 0 / 399.6 MB, free: 6.84 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.26e-06/0.2451, allocations: 4 kB / 399.6 MB, free: 6.836 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.0007284/0.2458, allocations: 445.4 kB / 400 MB, free: 6.48 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.497e-05/0.2458, allocations: 13.27 kB / 400 MB, free: 6.477 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.015e-05/0.2459, allocations: 51.33 kB / 400.1 MB, free: 6.426 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.426e-05/0.2459, allocations: 24.27 kB / 400.1 MB, free: 6.414 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002202/0.2461, allocations: 181.6 kB / 400.3 MB, free: 6.246 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.768e-05/0.2461, allocations: 15.38 kB / 400.3 MB, free: 6.238 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.47e-05/0.2462, allocations: 14.53 kB / 400.3 MB, free: 6.234 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003155/0.2465, allocations: 200.3 kB / 400.5 MB, free: 6.125 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.2465, allocations: 0 / 400.5 MB, free: 6.125 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.538e-05/0.2465, allocations: 5.531 kB / 400.5 MB, free: 6.121 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.831e-05/0.2465, allocations: 5.469 kB / 400.5 MB, free: 6.121 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000283/0.2468, allocations: 146.3 kB / 400.6 MB, free: 6.082 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008919/0.2477, allocations: 0.7252 MB / 401.4 MB, free: 5.492 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002831/0.248, allocations: 162 kB / 401.5 MB, free: 5.402 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001284/0.2481, allocations: 71.12 kB / 401.6 MB, free: 5.371 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.478e-05/0.2481, allocations: 3.344 kB / 401.6 MB, free: 5.371 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002272/0.2484, allocations: 143.5 kB / 401.7 MB, free: 5.285 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.332e-06/0.2484, allocations: 5.469 kB / 401.8 MB, free: 5.281 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005138/0.2489, allocations: 261.5 kB / 402 MB, free: 5.18 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.188e-05/0.2489, allocations: 83.75 kB / 402.1 MB, free: 5.082 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001518/0.2491, allocations: 200.5 kB / 402.3 MB, free: 4.949 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.617e-05/0.2491, allocations: 31.92 kB / 402.3 MB, free: 4.914 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.317e-05/0.2491, allocations: 142.7 kB / 402.5 MB, free: 4.789 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.954e-05/0.2492, allocations: 46.44 kB / 402.5 MB, free: 4.754 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.725e-05/0.2492, allocations: 41.22 kB / 402.5 MB, free: 4.727 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.462e-05/0.2493, allocations: 342 kB / 402.9 MB, free: 4.395 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001351/0.2494, allocations: 70.98 kB / 402.9 MB, free: 4.375 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001541/0.2496, allocations: 126.5 kB / 403.1 MB, free: 4.289 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002839/0.2499, allocations: 207.5 kB / 403.3 MB, free: 4.168 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.2499, allocations: 1.219 kB / 403.3 MB, free: 4.168 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003835/0.2502, allocations: 239.1 kB / 403.5 MB, free: 4.07 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.483e-05/0.2503, allocations: 5.781 kB / 403.5 MB, free: 4.07 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.2503, allocations: 2.406 kB / 403.5 MB, free: 4.07 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.593e-05/0.2503, allocations: 3.719 kB / 403.5 MB, free: 4.07 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001595/0.2504, allocations: 38.61 kB / 403.6 MB, free: 4.062 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.216e-06/0.2504, allocations: 3.266 kB / 403.6 MB, free: 4.062 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001491/0.2506, allocations: 30.58 kB / 403.6 MB, free: 4.051 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.428e-05/0.2506, allocations: 7.062 kB / 403.6 MB, free: 4.051 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 9.654e-05/0.2507, allocations: 150.3 kB / 403.7 MB, free: 3.91 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.766e-05/0.2507, allocations: 18.11 kB / 403.8 MB, free: 3.902 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004119/0.2511, allocations: 212.4 kB / 404 MB, free: 3.805 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5e-06/0.2511, allocations: 2.188 kB / 404 MB, free: 3.805 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.2512, allocations: 9.422 kB / 404 MB, free: 3.801 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.2512, allocations: 3.938 kB / 404 MB, free: 3.797 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001911/0.2513, allocations: 231.3 kB / 404.2 MB, free: 3.598 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.2513, allocations: 1.094 kB / 404.2 MB, free: 3.598 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001048/0.2515, allocations: 19.78 kB / 404.2 MB, free: 3.598 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.946e-06/0.2515, allocations: 1.281 kB / 404.2 MB, free: 3.598 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.379e-05/0.2515, allocations: 5.375 kB / 404.2 MB, free: 3.594 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.2515, allocations: 3.906 kB / 404.2 MB, free: 3.594 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.2515, allocations: 1.469 kB / 404.2 MB, free: 3.594 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003308/0.2518, allocations: 237.1 kB / 404.5 MB, free: 3.461 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.797e-05/0.2518, allocations: 20.7 kB / 404.5 MB, free: 3.445 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.758e-05/0.2519, allocations: 6.188 kB / 404.5 MB, free: 3.441 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001235/0.252, allocations: 20.2 kB / 404.5 MB, free: 3.438 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.262e-05/0.252, allocations: 16.73 kB / 404.5 MB, free: 3.434 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.162e-05/0.2521, allocations: 4.641 kB / 404.5 MB, free: 3.434 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001015/0.2522, allocations: 145 kB / 404.7 MB, free: 3.34 MB / 318.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2522, allocations: 0 / 404.7 MB, free: 3.34 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002463/0.2524, allocations: 42.23 kB / 404.7 MB, free: 3.328 MB / 318.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.0005228/0.2529, allocations: 0.7648 MB / 405.5 MB, free: 2.672 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003696/0.2533, allocations: 172.1 kB / 405.7 MB, free: 2.625 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.2533, allocations: 0 / 405.7 MB, free: 2.625 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001513/0.2535, allocations: 75.59 kB / 405.7 MB, free: 2.609 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003152/0.2538, allocations: 49.52 kB / 405.8 MB, free: 2.586 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002112/0.2559, allocations: 2.169 MB / 407.9 MB, free: 1.012 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001058/0.256, allocations: 129.9 kB / 408.1 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001173/0.2561, allocations: 36.42 kB / 408.1 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.271e-05/0.2562, allocations: 58.45 kB / 408.2 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of SimCode: time 4.71e-07/0.2562, allocations: 4 kB / 408.2 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03989/0.2961, allocations: 4.844 MB / 413 MB, free: 14.65 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.57/10.87, allocations: 13 kB / 413 MB, free: 14.64 MB / 334.1 MB " [Timeout remaining time 649] (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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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: 13.204915408045053]