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.001294/0.001294, 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.001442/0.001442, allocations: 215 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.438/1.438, allocations: 207.7 MB / 235.3 MB, free: 9.793 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.001847/0.001847, allocations: 61.8 kB / 347.2 MB, free: 9.902 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3029/0.3048, allocations: 49.16 MB / 396.3 MB, free: 8.871 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.00315/0.3079, allocations: 1.79 MB / 398.1 MB, free: 7.672 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001099/0.309, allocations: 0.6107 MB / 398.7 MB, free: 7.258 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000103/0.3091, allocations: 6.812 kB / 398.7 MB, free: 7.254 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001252/0.3093, allocations: 26.72 kB / 398.8 MB, free: 7.234 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000153/0.3094, allocations: 35.61 kB / 398.8 MB, free: 7.207 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002927/0.3097, allocations: 68.91 kB / 398.9 MB, free: 7.172 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002359/0.31, allocations: 171.5 kB / 399 MB, free: 7.09 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001848/0.3101, allocations: 48.28 kB / 399.1 MB, free: 7.07 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001216/0.3103, allocations: 80.81 kB / 399.2 MB, free: 7.027 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001481/0.3104, allocations: 67.97 kB / 399.2 MB, free: 7 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.251e-05/0.3104, allocations: 12.28 kB / 399.2 MB, free: 7 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.99e-05/0.3105, allocations: 23.52 kB / 399.3 MB, free: 6.996 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.386e-05/0.3106, allocations: 46.92 kB / 399.3 MB, free: 6.969 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.945e-05/0.3107, allocations: 67.75 kB / 399.4 MB, free: 6.926 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002703/0.311, allocations: 186.6 kB / 399.6 MB, free: 6.844 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.311, allocations: 1.5 kB / 399.6 MB, free: 6.844 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.311, allocations: 0 / 399.6 MB, free: 6.844 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.861e-06/0.311, allocations: 7.938 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.0008616/0.3118, allocations: 449 kB / 400 MB, free: 6.477 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.947e-05/0.3119, allocations: 13.98 kB / 400 MB, free: 6.473 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.552e-05/0.3119, allocations: 51.47 kB / 400.1 MB, free: 6.422 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.023e-05/0.312, allocations: 27.98 kB / 400.1 MB, free: 6.406 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003018/0.3123, allocations: 173 kB / 400.3 MB, free: 6.246 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.737e-05/0.3123, allocations: 20.06 kB / 400.3 MB, free: 6.234 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.807e-05/0.3123, allocations: 13.81 kB / 400.3 MB, free: 6.23 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003815/0.3127, allocations: 199.8 kB / 400.5 MB, free: 6.121 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.334e-05/0.3127, allocations: 0 / 400.5 MB, free: 6.121 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.899e-05/0.3128, allocations: 5.844 kB / 400.5 MB, free: 6.117 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.1e-05/0.3128, allocations: 6.375 kB / 400.5 MB, free: 6.117 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003166/0.3131, allocations: 142.3 kB / 400.7 MB, free: 6.082 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009743/0.3141, allocations: 0.7247 MB / 401.4 MB, free: 5.492 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003112/0.3144, allocations: 158.5 kB / 401.5 MB, free: 5.406 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001547/0.3145, allocations: 74.41 kB / 401.6 MB, free: 5.371 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.124e-05/0.3146, allocations: 4.266 kB / 401.6 MB, free: 5.371 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002444/0.3148, allocations: 147.7 kB / 401.8 MB, free: 5.281 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.223e-06/0.3148, allocations: 1.375 kB / 401.8 MB, free: 5.281 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.000542/0.3154, allocations: 258.3 kB / 402 MB, free: 5.184 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.051e-05/0.3154, allocations: 80.98 kB / 402.1 MB, free: 5.09 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001887/0.3156, allocations: 198.5 kB / 402.3 MB, free: 4.957 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.004e-05/0.3156, allocations: 32.05 kB / 402.3 MB, free: 4.922 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.96e-05/0.3157, allocations: 146 kB / 402.5 MB, free: 4.793 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.675e-05/0.3157, allocations: 42.25 kB / 402.5 MB, free: 4.762 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.206e-05/0.3158, allocations: 45.62 kB / 402.5 MB, free: 4.73 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.767e-05/0.3159, allocations: 338.1 kB / 402.9 MB, free: 4.402 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000172/0.3161, allocations: 72.59 kB / 402.9 MB, free: 4.383 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001934/0.3163, allocations: 126.1 kB / 403.1 MB, free: 4.297 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003511/0.3166, allocations: 207.8 kB / 403.3 MB, free: 4.176 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.3166, allocations: 0 / 403.3 MB, free: 4.176 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004316/0.317, allocations: 244.4 kB / 403.5 MB, free: 4.074 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.118e-05/0.3171, allocations: 6.938 kB / 403.5 MB, free: 4.074 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.3171, allocations: 1.156 kB / 403.5 MB, free: 4.074 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.168e-05/0.3171, allocations: 2.719 kB / 403.5 MB, free: 4.074 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001725/0.3173, allocations: 43.08 kB / 403.6 MB, free: 4.062 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.398e-06/0.3173, allocations: 3.797 kB / 403.6 MB, free: 4.062 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001523/0.3174, allocations: 26.91 kB / 403.6 MB, free: 4.055 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.875e-05/0.3175, allocations: 10.25 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 0.0001232/0.3176, allocations: 147.8 kB / 403.7 MB, free: 3.914 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.852e-05/0.3176, allocations: 15.25 kB / 403.8 MB, free: 3.906 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004443/0.318, allocations: 217.2 kB / 404 MB, free: 3.805 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.52e-06/0.3181, allocations: 6.859 kB / 404 MB, free: 3.801 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/0.3181, allocations: 1.016 kB / 404 MB, free: 3.801 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.462e-06/0.3181, allocations: 5.641 kB / 404 MB, free: 3.797 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002778/0.3183, allocations: 227.7 kB / 404.2 MB, free: 3.602 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.3183, allocations: 1.828 kB / 404.2 MB, free: 3.602 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001119/0.3185, allocations: 24.92 kB / 404.2 MB, free: 3.598 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.3185, allocations: 1.125 kB / 404.2 MB, free: 3.598 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.595e-05/0.3185, allocations: 6.094 kB / 404.2 MB, free: 3.594 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.3185, allocations: 1.062 kB / 404.2 MB, free: 3.594 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.3185, allocations: 1.125 kB / 404.2 MB, free: 3.594 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003952/0.3189, allocations: 241.7 kB / 404.5 MB, free: 3.457 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.968e-05/0.3189, allocations: 21.44 kB / 404.5 MB, free: 3.441 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.939e-05/0.3189, allocations: 3.453 kB / 404.5 MB, free: 3.441 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001258/0.3191, allocations: 19.25 kB / 404.5 MB, free: 3.438 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.355e-05/0.3191, allocations: 13.73 kB / 404.5 MB, free: 3.438 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.433e-05/0.3191, allocations: 8.016 kB / 404.5 MB, free: 3.434 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001245/0.3193, allocations: 141.7 kB / 404.7 MB, free: 3.344 MB / 318.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3193, allocations: 0 / 404.7 MB, free: 3.344 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002664/0.3195, allocations: 40.67 kB / 404.7 MB, free: 3.332 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.0006044/0.3201, allocations: 0.7664 MB / 405.5 MB, free: 2.676 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003826/0.3205, allocations: 168.4 kB / 405.6 MB, free: 2.633 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.3205, allocations: 1.438 kB / 405.7 MB, free: 2.633 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001645/0.3207, allocations: 78.38 kB / 405.7 MB, free: 2.613 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003345/0.321, allocations: 52.86 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.002392/0.3234, 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.000108/0.3235, allocations: 131.3 kB / 408.1 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001118/0.3236, allocations: 31.48 kB / 408.1 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.132e-05/0.3237, allocations: 58.41 kB / 408.2 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of SimCode: time 4.1e-07/0.3237, allocations: 0 / 408.2 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03471/0.3584, allocations: 4.849 MB / 413 MB, free: 14.64 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.58/11.94, allocations: 13.59 kB / 413 MB, free: 14.63 MB / 334.1 MB " [Timeout remaining time 648] (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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_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.csv","/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] "Error: Could not read variable multiSwitch.u[1] in file Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1_res.csv. Warning: Get data of variable multiSwitch.u[1] from file Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1_res.csv failed! Error: Could not read variable multiSwitch.u[2] in file Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1_res.csv. Warning: Get data of variable multiSwitch.u[2] from file Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.475582486949861]