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.001303/0.001303, allocations: 120.4 kB / 17.79 MB, free: 5.355 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.001326/0.001326, allocations: 203.3 kB / 20.74 MB, free: 2.41 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.46/1.46, allocations: 230.6 MB / 254.1 MB, free: 15.11 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.001542/0.001542, allocations: 51.94 kB / 373 MB, free: 10.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1121/0.1136, allocations: 53.33 MB / 426.3 MB, free: 4.828 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003406/0.117, allocations: 1.885 MB / 428.2 MB, free: 2.93 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001487/0.1185, allocations: 0.6622 MB / 428.9 MB, free: 2.262 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001401/0.1187, allocations: 4 kB / 428.9 MB, free: 2.258 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001699/0.1188, allocations: 35.66 kB / 428.9 MB, free: 2.223 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001705/0.119, allocations: 39.59 kB / 428.9 MB, free: 2.184 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003396/0.1193, allocations: 79.78 kB / 429 MB, free: 2.105 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002665/0.1196, allocations: 167.4 kB / 429.2 MB, free: 1.941 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000186/0.1198, allocations: 48.28 kB / 429.2 MB, free: 1.895 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002009/0.12, allocations: 75.64 kB / 429.3 MB, free: 1.82 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001868/0.1202, allocations: 87.59 kB / 429.4 MB, free: 1.734 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.197e-05/0.1202, allocations: 12 kB / 429.4 MB, free: 1.723 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.887e-05/0.1203, allocations: 27.98 kB / 429.4 MB, free: 1.695 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.205e-05/0.1204, allocations: 43.78 kB / 429.5 MB, free: 1.652 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001057/0.1205, allocations: 87.48 kB / 429.5 MB, free: 1.566 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003349/0.1208, allocations: 195.1 kB / 429.7 MB, free: 1.375 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.1208, allocations: 0 / 429.7 MB, free: 1.375 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.1208, allocations: 0 / 429.7 MB, free: 1.375 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.015e-06/0.1209, allocations: 0 / 429.7 MB, free: 1.375 MB / 350.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.0009577/0.1218, allocations: 0.5181 MB / 430.3 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.994e-05/0.1219, allocations: 16.03 kB / 430.3 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.274e-05/0.1219, allocations: 46.73 kB / 430.3 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001533/0.1221, allocations: 32.78 kB / 430.3 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003325/0.1224, allocations: 236 kB / 430.6 MB, free: 444 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.038e-05/0.1224, allocations: 8.656 kB / 430.6 MB, free: 436 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.609e-05/0.1224, allocations: 16.38 kB / 430.6 MB, free: 420 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003971/0.1228, allocations: 207.1 kB / 430.8 MB, free: 196 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.086e-05/0.1229, allocations: 0 / 430.8 MB, free: 196 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.942e-05/0.1229, allocations: 4 kB / 430.8 MB, free: 192 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.379e-05/0.1229, allocations: 4 kB / 430.8 MB, free: 188 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003197/0.1232, allocations: 155.7 kB / 431 MB, free: 32 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2315/0.3547, allocations: 0.7708 MB / 431.7 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003332/0.355, allocations: 151.4 kB / 431.9 MB, free: 11.15 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001486/0.3552, allocations: 69.83 kB / 432 MB, free: 11.13 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.2e-05/0.3552, allocations: 9.219 kB / 432 MB, free: 11.13 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002807/0.3555, allocations: 153.4 kB / 432.1 MB, free: 11.07 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.693e-06/0.3555, allocations: 0 / 432.1 MB, free: 11.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006023/0.3561, allocations: 257.2 kB / 432.4 MB, free: 11.03 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.514e-05/0.3561, allocations: 82.73 kB / 432.4 MB, free: 10.94 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001918/0.3563, allocations: 206.2 kB / 432.6 MB, free: 10.83 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.29e-05/0.3564, allocations: 33.8 kB / 432.7 MB, free: 10.8 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.745e-05/0.3564, allocations: 140.4 kB / 432.8 MB, free: 10.7 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.939e-05/0.3565, allocations: 44.39 kB / 432.9 MB, free: 10.68 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.116e-05/0.3566, allocations: 48.81 kB / 432.9 MB, free: 10.66 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.598e-05/0.3566, allocations: 330.2 kB / 433.2 MB, free: 10.35 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00016/0.3568, allocations: 68.5 kB / 433.3 MB, free: 10.35 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001731/0.357, allocations: 131.7 kB / 433.4 MB, free: 10.29 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002784/0.3572, allocations: 200.1 kB / 433.6 MB, free: 10.23 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.3572, allocations: 3.25 kB / 433.6 MB, free: 10.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003919/0.3576, allocations: 242.9 kB / 433.9 MB, free: 10.19 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.13e-05/0.3577, allocations: 10.34 kB / 433.9 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.255e-06/0.3577, allocations: 2.156 kB / 433.9 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.862e-05/0.3577, allocations: 2.25 kB / 433.9 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001734/0.3579, allocations: 42.22 kB / 433.9 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.07e-05/0.3579, allocations: 5.906 kB / 433.9 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001618/0.358, allocations: 29.45 kB / 433.9 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.911e-05/0.3581, allocations: 9.906 kB / 434 MB, free: 10.18 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.0001339/0.3582, allocations: 139.9 kB / 434.1 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.514e-05/0.3582, allocations: 28.05 kB / 434.1 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004489/0.3587, allocations: 208.8 kB / 434.3 MB, free: 9.98 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.569e-06/0.3587, allocations: 5.312 kB / 434.3 MB, free: 9.98 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.3587, allocations: 3.781 kB / 434.3 MB, free: 9.98 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.99e-06/0.3587, allocations: 1.031 kB / 434.3 MB, free: 9.98 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002387/0.3589, allocations: 271.4 kB / 434.6 MB, free: 9.754 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.826e-06/0.3589, allocations: 3.609 kB / 434.6 MB, free: 9.754 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000111/0.359, allocations: 24.33 kB / 434.6 MB, free: 9.754 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.909e-06/0.359, allocations: 5.719 kB / 434.6 MB, free: 9.75 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.29e-05/0.3591, allocations: 4.156 kB / 434.6 MB, free: 9.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.3591, allocations: 1.188 kB / 434.6 MB, free: 9.75 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.3591, allocations: 0 / 434.6 MB, free: 9.75 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003642/0.3594, allocations: 227.7 kB / 434.9 MB, free: 9.629 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.379e-05/0.3595, allocations: 99.95 kB / 435 MB, free: 9.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.833e-05/0.3595, allocations: 1.906 kB / 435 MB, free: 9.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001365/0.3596, allocations: 21.44 kB / 435 MB, free: 9.516 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.047e-05/0.3597, allocations: 18.02 kB / 435 MB, free: 9.512 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.123e-05/0.3597, allocations: 3.625 kB / 435 MB, free: 9.512 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001044/0.3598, allocations: 149.9 kB / 435.1 MB, free: 9.414 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3598, allocations: 0 / 435.1 MB, free: 9.414 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002654/0.3601, allocations: 40.06 kB / 435.2 MB, free: 9.406 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.0006006/0.3607, allocations: 0.7744 MB / 436 MB, free: 8.75 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003817/0.3611, allocations: 165.8 kB / 436.1 MB, free: 8.719 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3611, allocations: 0 / 436.1 MB, free: 8.719 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001671/0.3612, allocations: 77.52 kB / 436.2 MB, free: 8.703 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003309/0.3616, allocations: 47.31 kB / 436.2 MB, free: 8.691 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002396/0.3639, allocations: 2.183 MB / 438.4 MB, free: 7.113 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001948/0.3641, allocations: 0.7356 MB / 439.2 MB, free: 6.414 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001365/0.3643, allocations: 36.52 kB / 439.2 MB, free: 6.406 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.987e-05/0.3644, allocations: 62.03 kB / 439.3 MB, free: 6.363 MB / 350.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3644, allocations: 0 / 439.3 MB, free: 6.363 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02844/0.3928, allocations: 4.167 MB / 443.4 MB, free: 5.82 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.136/8.529, allocations: 9.797 kB / 443.4 MB, free: 5.816 MB / 350.1 MB " [Timeout remaining time 651] (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 & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00198965 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.csv","/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] "Error: Could not read variable multiSwitch.u[1] in file Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1_res.csv. Warning: Get data of variable multiSwitch.u[1] from file Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1_res.csv failed! Error: Could not read variable multiSwitch.u[2] in file Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1_res.csv. Warning: Get data of variable multiSwitch.u[2] from file Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.039826986001572]