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: 119.6 kB / 20.43 MB, free: 1.297 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.001521/0.001521, allocations: 206.8 kB / 23.74 MB, free: 4.516 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.42/1.42, allocations: 230.6 MB / 257.5 MB, free: 8 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.001624/0.001624, allocations: 51.92 kB / 377.8 MB, free: 3.113 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2771/0.2788, allocations: 53.37 MB / 431.1 MB, free: 6.82 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003327/0.2821, allocations: 1.899 MB / 433 MB, free: 4.918 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001312/0.2834, allocations: 0.67 MB / 433.7 MB, free: 4.242 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001002/0.2835, allocations: 7.938 kB / 433.7 MB, free: 4.234 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001272/0.2836, allocations: 19.73 kB / 433.7 MB, free: 4.215 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001619/0.2838, allocations: 35.66 kB / 433.8 MB, free: 4.18 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003015/0.2841, allocations: 83.8 kB / 433.8 MB, free: 4.098 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002517/0.2843, allocations: 171.3 kB / 434 MB, free: 3.93 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000166/0.2845, allocations: 52.31 kB / 434.1 MB, free: 3.879 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001688/0.2847, allocations: 79.69 kB / 434.1 MB, free: 3.801 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001807/0.2849, allocations: 83.56 kB / 434.2 MB, free: 3.719 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.874e-05/0.2849, allocations: 12 kB / 434.2 MB, free: 3.707 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.454e-05/0.285, allocations: 23.98 kB / 434.3 MB, free: 3.684 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.629e-05/0.2851, allocations: 51.77 kB / 434.3 MB, free: 3.633 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.562e-05/0.2851, allocations: 79.55 kB / 434.4 MB, free: 3.555 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003138/0.2855, allocations: 192.9 kB / 434.6 MB, free: 3.367 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.213e-06/0.2855, allocations: 3.984 kB / 434.6 MB, free: 3.363 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.2855, allocations: 4 kB / 434.6 MB, free: 3.359 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.653e-06/0.2855, allocations: 0 / 434.6 MB, free: 3.359 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.0009581/0.2864, allocations: 445.5 kB / 435 MB, free: 2.891 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.079e-05/0.2865, allocations: 8.031 kB / 435 MB, free: 2.883 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.783e-05/0.2865, allocations: 50.73 kB / 435.1 MB, free: 2.824 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001621/0.2867, allocations: 36.78 kB / 435.1 MB, free: 2.789 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00028/0.287, allocations: 179.4 kB / 435.3 MB, free: 2.59 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.618e-05/0.287, allocations: 12.66 kB / 435.3 MB, free: 2.578 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.525e-05/0.287, allocations: 16.31 kB / 435.3 MB, free: 2.562 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003548/0.2874, allocations: 207.8 kB / 435.5 MB, free: 2.344 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.128e-05/0.2874, allocations: 0 / 435.5 MB, free: 2.344 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.608e-05/0.2874, allocations: 8 kB / 435.5 MB, free: 2.336 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.783e-05/0.2874, allocations: 4 kB / 435.5 MB, free: 2.332 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002978/0.2877, allocations: 139.8 kB / 435.7 MB, free: 2.195 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001122/0.2889, allocations: 0.7536 MB / 436.4 MB, free: 1.387 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003296/0.2892, allocations: 161 kB / 436.6 MB, free: 1.211 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001584/0.2893, allocations: 73.8 kB / 436.6 MB, free: 1.133 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.438e-05/0.2894, allocations: 0 / 436.6 MB, free: 1.133 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002673/0.2896, allocations: 151.2 kB / 436.8 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.112e-06/0.2896, allocations: 4 kB / 436.8 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006038/0.2903, allocations: 262.2 kB / 437.1 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.835e-05/0.2903, allocations: 81.09 kB / 437.1 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002083/0.2905, allocations: 207.1 kB / 437.3 MB, free: 404 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.676e-05/0.2905, allocations: 33.7 kB / 437.4 MB, free: 364 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001117/0.2907, allocations: 144.3 kB / 437.5 MB, free: 216 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.276e-05/0.2907, allocations: 47.62 kB / 437.6 MB, free: 168 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.963e-05/0.2908, allocations: 45.7 kB / 437.6 MB, free: 116 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001645/0.2909, allocations: 330.8 kB / 437.9 MB, free: 15.78 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000158/0.2911, allocations: 67.95 kB / 438 MB, free: 15.71 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001817/0.2913, allocations: 123 kB / 438.1 MB, free: 15.57 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003333/0.2916, allocations: 210.6 kB / 438.3 MB, free: 15.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.2916, allocations: 4 kB / 438.3 MB, free: 15.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004272/0.292, allocations: 241.4 kB / 438.6 MB, free: 15.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.677e-05/0.2921, allocations: 11.94 kB / 438.6 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.639e-06/0.2921, allocations: 0 / 438.6 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.707e-05/0.2921, allocations: 4 kB / 438.6 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000169/0.2922, allocations: 35.92 kB / 438.6 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.767e-06/0.2923, allocations: 8.188 kB / 438.6 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001518/0.2924, allocations: 31.86 kB / 438.6 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.545e-05/0.2924, allocations: 8 kB / 438.7 MB, free: 15 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.0001446/0.2926, allocations: 141.7 kB / 438.8 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.822e-05/0.2926, allocations: 15.91 kB / 438.8 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004551/0.293, allocations: 218.8 kB / 439 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.2931, allocations: 4 kB / 439 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.2931, allocations: 0 / 439 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.2931, allocations: 0 / 439 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002735/0.2933, allocations: 240.5 kB / 439.3 MB, free: 14.33 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.2933, allocations: 3.984 kB / 439.3 MB, free: 14.33 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001124/0.2934, allocations: 23.92 kB / 439.3 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.2935, allocations: 4 kB / 439.3 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.284e-05/0.2935, allocations: 4 kB / 439.3 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.2935, allocations: 0 / 439.3 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.2935, allocations: 0 / 439.3 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003856/0.2939, allocations: 233.6 kB / 439.5 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.068e-05/0.2939, allocations: 15.91 kB / 439.5 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.711e-05/0.2939, allocations: 4 kB / 439.5 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001251/0.294, allocations: 19.97 kB / 439.6 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.422e-05/0.2941, allocations: 27.91 kB / 439.6 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.26e-05/0.2941, allocations: 8.094 kB / 439.6 MB, free: 13.97 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000132/0.2942, allocations: 148.6 kB / 439.7 MB, free: 13.83 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2942, allocations: 0 / 439.7 MB, free: 13.83 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000255/0.2945, allocations: 43.88 kB / 439.8 MB, free: 13.79 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.0007308/0.2952, allocations: 0.7692 MB / 440.6 MB, free: 12.98 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003778/0.2956, allocations: 159.8 kB / 440.7 MB, free: 12.82 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.2956, allocations: 0 / 440.7 MB, free: 12.82 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001769/0.2958, allocations: 84.42 kB / 440.8 MB, free: 12.74 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003231/0.2961, allocations: 50.17 kB / 440.8 MB, free: 12.7 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002715/0.2988, allocations: 2.184 MB / 443 MB, free: 10.37 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003629/0.2992, allocations: 0.7358 MB / 443.8 MB, free: 9.609 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001078/0.2993, allocations: 37.61 kB / 443.8 MB, free: 9.574 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.395e-05/0.2994, allocations: 59.42 kB / 443.9 MB, free: 9.52 MB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.2994, allocations: 3.938 kB / 443.9 MB, free: 9.516 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03109/0.3305, allocations: 4.373 MB / 448.2 MB, free: 5.293 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.95/11.28, allocations: 6.516 kB / 448.2 MB, free: 5.289 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 & 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: 13.855374441001914]