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.001357/0.001357, allocations: 113.6 kB / 21.19 MB, free: 0.7031 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.001518/0.001518, allocations: 208.6 kB / 24.49 MB, free: 4.055 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.485/1.485, allocations: 207.6 MB / 235.3 MB, free: 9.992 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.001878/0.001878, allocations: 51.92 kB / 347.2 MB, free: 10.04 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.272/0.2739, allocations: 49.16 MB / 396.3 MB, free: 8.977 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.002676/0.2766, allocations: 1.875 MB / 398.2 MB, free: 7.695 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00102/0.2776, allocations: 0.6382 MB / 398.9 MB, free: 7.25 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001018/0.2777, allocations: 7.312 kB / 398.9 MB, free: 7.246 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001281/0.2778, allocations: 26.52 kB / 398.9 MB, free: 7.227 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001371/0.278, allocations: 35.45 kB / 398.9 MB, free: 7.199 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002658/0.2782, allocations: 76.23 kB / 399 MB, free: 7.156 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002196/0.2785, allocations: 159.8 kB / 399.2 MB, free: 7.086 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001426/0.2786, allocations: 51.92 kB / 399.2 MB, free: 7.059 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001196/0.2787, allocations: 77.22 kB / 399.3 MB, free: 7.02 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001422/0.2789, allocations: 84.7 kB / 399.4 MB, free: 6.977 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.832e-05/0.2789, allocations: 12.59 kB / 399.4 MB, free: 6.977 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.03e-05/0.279, allocations: 22.25 kB / 399.4 MB, free: 6.973 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.77e-05/0.279, allocations: 45.52 kB / 399.4 MB, free: 6.945 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.171e-05/0.2791, allocations: 81.66 kB / 399.5 MB, free: 6.891 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002464/0.2793, allocations: 187.6 kB / 399.7 MB, free: 6.812 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.838e-06/0.2794, allocations: 0.7031 kB / 399.7 MB, free: 6.812 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2794, allocations: 1.031 kB / 399.7 MB, free: 6.812 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.012e-06/0.2794, allocations: 0 / 399.7 MB, free: 6.812 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.0007609/0.2801, allocations: 451.9 kB / 400.1 MB, free: 6.449 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.313e-05/0.2802, allocations: 17.33 kB / 400.2 MB, free: 6.441 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.13e-05/0.2802, allocations: 48.11 kB / 400.2 MB, free: 6.395 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.674e-05/0.2802, allocations: 23.95 kB / 400.2 MB, free: 6.383 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002155/0.2805, allocations: 181.2 kB / 400.4 MB, free: 6.215 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.979e-05/0.2805, allocations: 12.53 kB / 400.4 MB, free: 6.211 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.286e-05/0.2805, allocations: 13.16 kB / 400.4 MB, free: 6.207 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003492/0.2808, allocations: 209.4 kB / 400.6 MB, free: 6.086 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.131e-05/0.2809, allocations: 1.156 kB / 400.6 MB, free: 6.086 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.651e-05/0.2809, allocations: 6.125 kB / 400.6 MB, free: 6.082 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.814e-05/0.2809, allocations: 5.312 kB / 400.7 MB, free: 6.082 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002878/0.2812, allocations: 141.9 kB / 400.8 MB, free: 6.047 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009501/0.2821, allocations: 0.7516 MB / 401.5 MB, free: 5.449 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000294/0.2824, allocations: 159.8 kB / 401.7 MB, free: 5.363 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001354/0.2826, allocations: 69.52 kB / 401.8 MB, free: 5.332 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.189e-05/0.2826, allocations: 5.391 kB / 401.8 MB, free: 5.332 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002391/0.2828, allocations: 144.8 kB / 401.9 MB, free: 5.242 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.312e-06/0.2828, allocations: 1.156 kB / 401.9 MB, free: 5.242 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005511/0.2834, allocations: 257.1 kB / 402.2 MB, free: 5.145 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.239e-05/0.2834, allocations: 81.02 kB / 402.2 MB, free: 5.051 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001743/0.2836, allocations: 202.6 kB / 402.4 MB, free: 4.914 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.869e-05/0.2836, allocations: 29.42 kB / 402.5 MB, free: 4.883 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.954e-05/0.2837, allocations: 144.8 kB / 402.6 MB, free: 4.754 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.461e-05/0.2837, allocations: 53.75 kB / 402.7 MB, free: 4.711 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.379e-05/0.2838, allocations: 40.69 kB / 402.7 MB, free: 4.684 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.377e-05/0.2839, allocations: 334.6 kB / 403 MB, free: 4.359 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001473/0.284, allocations: 67.83 kB / 403.1 MB, free: 4.344 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001578/0.2842, allocations: 137.1 kB / 403.2 MB, free: 4.246 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002853/0.2844, allocations: 205.4 kB / 403.4 MB, free: 4.125 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.2844, allocations: 1.281 kB / 403.4 MB, free: 4.125 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004236/0.2849, allocations: 239 kB / 403.7 MB, free: 4.027 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.705e-05/0.2849, allocations: 7.172 kB / 403.7 MB, free: 4.027 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.211e-06/0.2849, allocations: 1.281 kB / 403.7 MB, free: 4.027 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.639e-05/0.2849, allocations: 3.422 kB / 403.7 MB, free: 4.027 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001713/0.2851, allocations: 42.73 kB / 403.7 MB, free: 4.016 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.728e-06/0.2851, allocations: 3.703 kB / 403.7 MB, free: 4.016 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000157/0.2852, allocations: 37.55 kB / 403.8 MB, free: 4 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.66e-05/0.2853, allocations: 6.5 kB / 403.8 MB, free: 4 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.0001022/0.2854, allocations: 138.8 kB / 403.9 MB, free: 3.867 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.019e-05/0.2854, allocations: 20.53 kB / 403.9 MB, free: 3.859 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004153/0.2858, allocations: 223.2 kB / 404.1 MB, free: 3.75 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.2858, allocations: 2.219 kB / 404.1 MB, free: 3.75 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/0.2858, allocations: 0 / 404.1 MB, free: 3.75 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.2858, allocations: 1.188 kB / 404.1 MB, free: 3.75 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002135/0.286, allocations: 251.1 kB / 404.4 MB, free: 3.547 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.286, allocations: 0 / 404.4 MB, free: 3.547 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001135/0.2862, allocations: 18.98 kB / 404.4 MB, free: 3.547 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.394e-06/0.2862, allocations: 1.156 kB / 404.4 MB, free: 3.547 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.261e-05/0.2862, allocations: 2.219 kB / 404.4 MB, free: 3.547 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.477e-06/0.2862, allocations: 6.609 kB / 404.4 MB, free: 3.543 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.2862, allocations: 1.188 kB / 404.4 MB, free: 3.543 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003461/0.2865, allocations: 230.7 kB / 404.6 MB, free: 3.414 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.804e-05/0.2865, allocations: 22.16 kB / 404.7 MB, free: 3.398 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.819e-05/0.2866, allocations: 1.734 kB / 404.7 MB, free: 3.398 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001353/0.2867, allocations: 28.66 kB / 404.7 MB, free: 3.387 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.571e-05/0.2868, allocations: 16.95 kB / 404.7 MB, free: 3.383 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.144e-05/0.2868, allocations: 5.188 kB / 404.7 MB, free: 3.383 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001026/0.2869, allocations: 140.3 kB / 404.9 MB, free: 3.293 MB / 318.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2869, allocations: 1.125 kB / 404.9 MB, free: 3.293 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002683/0.2871, allocations: 37.41 kB / 404.9 MB, free: 3.285 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.0005225/0.2877, allocations: 0.7718 MB / 405.7 MB, free: 2.621 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003575/0.288, allocations: 163.4 kB / 405.8 MB, free: 2.582 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.288, allocations: 384 / 405.8 MB, free: 2.582 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00016/0.2882, allocations: 84.78 kB / 405.9 MB, free: 2.555 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003556/0.2885, allocations: 47.17 kB / 406 MB, free: 2.535 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002288/0.2908, allocations: 2.171 MB / 408.1 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001985/0.291, allocations: 0.7384 MB / 408.9 MB, free: 256 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001192/0.2912, allocations: 32.64 kB / 408.9 MB, free: 256 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.74e-05/0.2912, allocations: 54.75 kB / 408.9 MB, free: 216 kB / 318.1 MB Notification: Performance of SimCode: time 1.382e-06/0.2912, allocations: 0 / 408.9 MB, free: 216 kB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03364/0.3249, allocations: 4.345 MB / 413.3 MB, free: 14.45 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.85/12.18, allocations: 13.09 kB / 413.3 MB, free: 14.44 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.760576464999758]